From d5276b332884bd8c69fd93eef3b6cbdd01148c54 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 18 Jan 2016 14:32:52 +0000 Subject: [PATCH 1/2] add opt out for autoupdates to git update init --- init/30_install_update_plexpy.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init/30_install_update_plexpy.sh b/init/30_install_update_plexpy.sh index 8a64606..fc7a773 100644 --- a/init/30_install_update_plexpy.sh +++ b/init/30_install_update_plexpy.sh @@ -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 + From ff8f2ef746a9b0fe33cc33d998ee23d26b5cf6a8 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 18 Jan 2016 14:40:46 +0000 Subject: [PATCH 2/2] add opt out for autoupdates to git update init --- init/30_install_update_plexpy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/30_install_update_plexpy.sh b/init/30_install_update_plexpy.sh index fc7a773..7c9b2e5 100644 --- a/init/30_install_update_plexpy.sh +++ b/init/30_install_update_plexpy.sh @@ -1,6 +1,6 @@ #!/bin/bash -[[ ! -d /opt/plexpy/.git ] && (git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy && \ +[[ ! -d /opt/plexpy/.git ]] && (git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy && \ chown -R abc:abc /config) # opt out for autoupdates