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
2017-01-28 11:10:00 +00:00
php /home/sats/satsd/source/lib/api/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;