SATS/update

12 lines
241 B
Bash
Executable File

#!/bin/sh
# [1] Send data + fetch configuration
php /home/sats/satsd/source/lib/api/sync;
# [2] Update source
BRANCH=$(cat /home/sats/satsd/conf/machine.branch);
cd /home/sats/satsd/source/;
git checkout $BRANCH;
git pull origin $BRANCH;