add opt out for autoupdates to git update init
This commit is contained in:
parent
a7aa4aa20d
commit
39e7e9ce6d
1 changed files with 11 additions and 8 deletions
|
@ -1,10 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mkdir -p /app
|
|
||||||
chown abc:abc /app /config
|
|
||||||
|
|
||||||
if [ ! -d /app/headphones/.git ]; then
|
[[ ! -d /app/headphones/.git ]] && (git clone https://github.com/rembo10/headphones.git /app/headphones && \
|
||||||
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
|
chown -R abc:abc /app)
|
||||||
else
|
|
||||||
cd /app/headphones
|
|
||||||
/sbin/setuser abc git pull
|
# opt out for autoupdates
|
||||||
fi
|
[ "$ADVANCED_DISABLEUPDATES" ] && exit 0
|
||||||
|
|
||||||
|
cd /app/headphones
|
||||||
|
git pull
|
||||||
|
chown -R abc:abc /app
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue