This commit is contained in:
satsd 2017-01-26 08:23:50 -05:00
commit e76a06ddc2
2 changed files with 22 additions and 0 deletions

11
daemon Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
c=0;
while [ 1 ]; do
echo "daemon launched $c";
sleep 1;
c=`expr $c + 1`;
done;

11
update Normal file
View File

@ -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;