2015-07-15 11:10:00 -05:00
|
|
|
#!/bin/bash
|
2015-08-06 12:52:40 -05:00
|
|
|
mkdir -p /app
|
|
|
|
chown abc:abc /app
|
2015-08-04 19:43:37 -05:00
|
|
|
|
|
|
|
if [ ! -d /app/headphones/.git ]; then
|
|
|
|
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /app/headphones
|
2015-07-15 11:10:00 -05:00
|
|
|
else
|
2015-08-04 19:43:37 -05:00
|
|
|
cd /app/headphones
|
|
|
|
/sbin/setuser abc git pull
|
2015-07-15 11:10:00 -05:00
|
|
|
fi
|