add opt out for autoupdates to git update init
This commit is contained in:
parent
a7aa4aa20d
commit
39e7e9ce6d
1 changed files with 11 additions and 8 deletions
|
@ -1,10 +1,13 @@
|
|||
#!/bin/bash
|
||||
mkdir -p /app
|
||||
chown abc:abc /app /config
|
||||
|
||||
if [ ! -d /app/headphones/.git ]; then
|
||||
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
|
||||
else
|
||||
[[ ! -d /app/headphones/.git ]] && (git clone https://github.com/rembo10/headphones.git /app/headphones && \
|
||||
chown -R abc:abc /app)
|
||||
|
||||
|
||||
# opt out for autoupdates
|
||||
[ "$ADVANCED_DISABLEUPDATES" ] && exit 0
|
||||
|
||||
cd /app/headphones
|
||||
/sbin/setuser abc git pull
|
||||
fi
|
||||
git pull
|
||||
chown -R abc:abc /app
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue