SATS/update

12 lines
241 B
Plaintext
Raw Normal View History

2017-01-26 13:23:50 +00:00
#!/bin/sh
2017-01-28 10:45:09 +00:00
# [1] Send data + fetch configuration
php /home/sats/satsd/source/network/sync;
2017-01-26 13:23:50 +00:00
# [2] Update source
2017-01-28 10:45:09 +00:00
BRANCH=$(cat /home/sats/satsd/conf/machine.branch);
2017-01-26 13:23:50 +00:00
cd /home/sats/satsd/source/;
git checkout $BRANCH;
git pull origin $BRANCH;