docker-headphones/init/20_update.sh

9 lines
228 B
Bash
Raw Normal View History

2015-07-15 11:10:00 -05:00
#!/bin/bash
if [ ! -d /opt/headphones/.git ]; then
2015-07-30 18:20:03 +02:00
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /opt/headphones
2015-07-15 11:10:00 -05:00
else
cd /opt/headphones
2015-07-30 18:21:38 +02:00
/sbin/setuser abc git pull
2015-07-15 11:10:00 -05:00
fi
2015-07-30 14:53:38 -05:00
chown -R abc:abc /opt/headphones