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

update all local plugins on startup, unless forbidden by TTRSS_NO_STARTUP_PLUGIN_UPDATES

This commit is contained in:
Andrew Dolgov 2021-11-18 19:16:13 +03:00
parent 5f3a1bcc75
commit 13e08cfb59
3 changed files with 19 additions and 1 deletions

View file

@ -46,6 +46,21 @@ for d in cache lock feed-icons plugins.local themes.local; do
mkdir -p $DST_DIR/$d
done
if [ -z "$TTRSS_NO_STARTUP_PLUGIN_UPDATES" ]; then
echo updating all local plugins...
find $DST_DIR/plugins.local -type d -maxdepth 1 | while read PLUGIN; do
echo updating $PLUGIN...
cd $PLUGIN && \
git config core.filemode false && \
git config pull.rebase false && \
git pull origin master || echo warning: attempt to update plugin $PLUGIN failed.
done
else
echo skipping local plugin updates, disabled.
fi
cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
chmod 644 $DST_DIR/config.php