mirror of
https://github.com/linuxserver/docker-htpcmanager.git
synced 2026-04-06 00:01:54 +08:00
Merge pull request #2 from sparklyballs/master
add opt out for autoupdates to git update init
This commit is contained in:
commit
9f2d0ddd91
@ -1,8 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d "/app/htpcmanager/.git" ]; then
|
||||
/sbin/setuser abc git clone https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager
|
||||
else
|
||||
[[ ! -d /app/htpcmanager/.git ]] && (git clone https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager && \
|
||||
chown -R abc:abc /app)
|
||||
|
||||
# opt out for autoupdates
|
||||
[ "$ADVANCED_DISABLEUPDATES" ] && exit 0
|
||||
|
||||
cd /app/htpcmanager
|
||||
/sbin/setuser abc git pull
|
||||
fi
|
||||
git pull
|
||||
chown -R abc:abc /app
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user