running git as abc

This commit is contained in:
Stian Buch Larsen 2015-07-30 18:20:03 +02:00
parent 14b1a4b54b
commit 0fece1b914

View file

@ -1,11 +1,11 @@
#!/bin/bash
if [ ! -d /opt/headphones/.git ]; then
git clone https://github.com/rembo10/headphones.git /opt/headphones
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /opt/headphones
else
cd /opt/headphones
git pull
/sbin/setuser abc git pull
fi
chown -R abc:abc /opt/headphones
#chown -R abc:abc /opt/headphones
apt-get update -qq
apt-get --only-upgrade install -yqq ffmpeg