setup/clone/utility/sats-loop

22 lines
533 B
Bash

#!/bin/sh
# [0] Exit if no argument
test $# -lt 1 && exit;
# [1] first install (install source code)
sh /home/sats/satsd/install-source 2> /home/sats/satsd/log/install-source.log > /home/sats/satsd/log/install-source.log;
# [2] Propagate script
if [ "$1" = "daemon" ]; then
sh /home/sats/satsd/source/daemon 2>> /home/sats/satsd/log/daemon.log >> /home/sats/satsd/log/daemon.log;
elif [ "$1" = "update" ]; then
sh /home/sats/satsd/source/update 2>> /home/sats/satsd/log/update.log >> /home/sats/satsd/log/update.log;
fi;