SATS/update

16 lines
319 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:19:40 +00:00
/home/sats/satsd/source/lib/api/sync;
2017-01-26 13:23:50 +00:00
2017-01-28 18:26:19 +00:00
test $? -ne 0 && exit 127;
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;
2017-01-28 18:26:19 +00:00
test $? -ne 0 && exit 127;
2017-01-26 13:23:50 +00:00
git pull origin $BRANCH;
2017-01-28 18:26:19 +00:00
test $? -ne 0 && exit 127;