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
|
#!/bin/bash
|
||||||
if [ ! -d /opt/headphones/.git ]; then
|
/sbin/setuser abc mkdir -p /app
|
||||||
git clone https://github.com/rembo10/headphones.git /opt/headphones
|
|
||||||
|
if [ ! -d /app/headphones/.git ]; then
|
||||||
|
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
|
||||||
else
|
else
|
||||||
cd /opt/headphones
|
cd /app/headphones
|
||||||
git pull
|
/sbin/setuser abc git pull
|
||||||
fi
|
fi
|
||||||
chown -R abc:abc /opt/headphones
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue