mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-11 04:09:52 +02:00
* run git under 'app' when updating local plugins on startup
* only try to update actual git repositories in plugins.local/
This commit is contained in:
parent
e53986a352
commit
8dcdb4d581
1 changed files with 7 additions and 5 deletions
|
@ -50,12 +50,14 @@ if [ -z "$TTRSS_NO_STARTUP_PLUGIN_UPDATES" ]; then
|
|||
echo updating all local plugins...
|
||||
|
||||
find $DST_DIR/plugins.local -mindepth 1 -maxdepth 1 -type d | while read PLUGIN; do
|
||||
echo updating $PLUGIN...
|
||||
if [ -d $PLUGIN/.git ]; then
|
||||
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.
|
||||
cd $PLUGIN && \
|
||||
sudo -u app git config core.filemode false && \
|
||||
sudo -u app git config pull.rebase false && \
|
||||
sudo -u app git pull origin master || echo warning: attempt to update plugin $PLUGIN failed.
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo skipping local plugin updates, disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue