docker-headphones/init/20_update.sh

11 lines
237 B
Bash
Raw Normal View History

2015-07-15 11:10:00 -05:00
#!/bin/bash
2015-08-06 12:52:40 -05:00
mkdir -p /app
2015-08-24 09:29:02 +02:00
chown abc:abc /app /config
2015-08-04 19:43:37 -05:00
if [ ! -d /app/headphones/.git ]; then
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
2015-07-15 11:10:00 -05:00
else
2015-08-04 19:43:37 -05:00
cd /app/headphones
/sbin/setuser abc git pull
2015-07-15 11:10:00 -05:00
fi