diff --git a/init/30_install_update_plexpy.sh b/init/30_install_update_plexpy.sh index 8a64606..7c9b2e5 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 +