From e76a06ddc29c2aea2922da875b905b5544546f8e Mon Sep 17 00:00:00 2001 From: satsd Date: Thu, 26 Jan 2017 08:23:50 -0500 Subject: [PATCH] init --- daemon | 11 +++++++++++ update | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100755 daemon create mode 100644 update 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;