1
0
Fork 0
mirror of https://git.tt-rss.org/fox/ttrss-docker-compose synced 2025-07-11 19:40:03 +02:00

split build-related stuff into src/

This commit is contained in:
Andrew Dolgov 2020-01-23 15:20:12 +03:00
parent 15caf46b66
commit 98d65cd865
11 changed files with 120 additions and 14 deletions

26
src/app/build-prepare.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/sh
DST_DIR=/src/tt-rss
SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git
if [ ! -d $DST_DIR ]; then
mkdir -p $DST_DIR
git clone $SRC_REPO $DST_DIR
else
cd $DST_DIR && \
git config core.filemode false && \
git pull origin master
fi
if [ ! -d $DST_DIR/plugins.local/nginx_xaccel ]; then
git clone https://git.tt-rss.org/fox/ttrss-nginx-xaccel.git $DST_DIR/plugins.local/nginx_xaccel
else
cd $DST_DIR/plugins.local/nginx_xaccel && \
git config core.filemode false && \
git pull origin master
fi
mkdir -p /var/www
addgroup -g $OWNER_GID app
adduser -D -h /var/www/html -G app -u $OWNER_UID app