|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
|
|
OWNER=nobody
|
|
|
|
|
DST_DIR=/var/www/html/tt-rss
|
|
|
|
|
SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git
|
|
|
|
|
|
|
|
|
@ -15,7 +14,13 @@ else
|
|
|
|
|
cd $DST_DIR && git pull origin master
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
chown -R $OWNER $DST_DIR
|
|
|
|
|
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 pull origin master
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
chown -R $OWNER_UID:$OWNER_GID $DST_DIR
|
|
|
|
|
chmod +x /etc/periodic/15min/*
|
|
|
|
|
|
|
|
|
|
for d in cache lock feed-icons; do
|
|
|
|
@ -34,6 +39,7 @@ if [ ! -s $DST_DIR/config.php ]; then
|
|
|
|
|
-e "s/define('DB_USER'.*/define('DB_USER', '$DB_USER');/" \
|
|
|
|
|
-e "s/define('DB_NAME'.*/define('DB_NAME', '$DB_NAME');/" \
|
|
|
|
|
-e "s/define('DB_PASS'.*/define('DB_PASS', '$DB_PASS');/" \
|
|
|
|
|
-e "s/define('PLUGINS'.*/define('PLUGINS', 'auth_internal, note, nginx_xaccel');/" \
|
|
|
|
|
-e "s/define('SELF_URL_PATH'.*/define('SELF_URL_PATH','$SELF_URL_PATH');/" \
|
|
|
|
|
< $DST_DIR/config.php-dist > $DST_DIR/config.php
|
|
|
|
|
fi
|
|
|
|
|