set user to run as abc

This commit is contained in:
Sean Dion 2015-08-04 19:43:37 -05:00
parent 5d90552828
commit 9c81fe287b

View file

@ -1,8 +1,9 @@
#!/bin/bash
if [ ! -d /opt/headphones/.git ]; then
git clone https://github.com/rembo10/headphones.git /opt/headphones
/sbin/setuser abc mkdir -p /app
if [ ! -d /app/headphones/.git ]; then
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
else
cd /opt/headphones
git pull
cd /app/headphones
/sbin/setuser abc git pull
fi
chown -R abc:abc /opt/headphones