set user to run as abc
This commit is contained in:
parent
5d90552828
commit
9c81fe287b
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue