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-18 22:00:30 +01:00
commit 1385d5be0d

View File

@ -1,11 +1,12 @@
#!/bin/bash
[[ ! -d /opt/plexpy/.git ]] && (git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy && \
chown -R abc:abc /config)
if [ ! -d /opt/plexpy/.git ]; then
git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy
else
cd /opt/plexpy
git pull
fi
# opt out for autoupdates
[ "$ADVANCED_DISABLEUPDATES" ] && exit 0
cd /opt/plexpy
git pull
chown -R abc:abc /config