add opt out for autoupdates to git update init

This commit is contained in:
sparklyballs 2016-01-19 07:33:01 +00:00
parent a7aa4aa20d
commit 39e7e9ce6d

View file

@ -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