Merge pull request #6 from sparklyballs/master

add opt out for autoupdates to git update init
This commit is contained in:
Stian Buch Larsen 2016-01-20 09:46:14 +01:00
commit 118be6aa41

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
cd /app/headphones
/sbin/setuser abc git pull
fi
[[ ! -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
git pull
chown -R abc:abc /app