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
|
|
|
|
|
|
|
# [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;
|