commit e76a06ddc29c2aea2922da875b905b5544546f8e Author: satsd Date: Thu Jan 26 08:23:50 2017 -0500 init diff --git a/daemon b/daemon new file mode 100755 index 0000000..591176d --- /dev/null +++ b/daemon @@ -0,0 +1,11 @@ +#!/bin/sh + +c=0; + +while [ 1 ]; do + + echo "daemon launched $c"; + sleep 1; + + c=`expr $c + 1`; +done; diff --git a/update b/update new file mode 100644 index 0000000..880ad10 --- /dev/null +++ b/update @@ -0,0 +1,11 @@ +#!/bin/sh + +# [1] Send logs + update configuration +php /home/sats/satsd/source/network/send_log; + +# [2] Update source +BRANCH=$(cat /home/sats/satsd/conf/branch); + +cd /home/sats/satsd/source/; +git checkout $BRANCH; +git pull origin $BRANCH;