docker-headphones/init/20_update.sh
2015-07-30 18:21:38 +02:00

8 lines
229 B
Bash
Executable file

#!/bin/bash
if [ ! -d /opt/headphones/.git ]; then
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /opt/headphones
else
cd /opt/headphones
/sbin/setuser abc git pull
fi
#chown -R abc:abc /opt/headphones