2017-01-25 18:52:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-01-26 12:50:56 +00:00
|
|
|
# [0] Exit if no argument
|
|
|
|
test $# -lt 1 && exit;
|
|
|
|
|
2017-02-17 16:36:33 +00:00
|
|
|
# [1] Propagate script to DAEMON
|
2017-01-26 12:50:56 +00:00
|
|
|
if [ "$1" = "daemon" ]; then
|
|
|
|
|
2017-01-26 15:40:46 +00:00
|
|
|
|
2017-02-17 19:11:26 +00:00
|
|
|
/bin/bash /home/sats/satsd/source/daemon 2>> /home/sats/satsd/log/daemon.log >> /home/sats/satsd/log/daemon.log;
|
2017-01-26 12:50:56 +00:00
|
|
|
|
2017-02-17 16:36:33 +00:00
|
|
|
# [2] Propagate script to UPDATE
|
2017-01-26 12:50:56 +00:00
|
|
|
elif [ "$1" = "update" ]; then
|
|
|
|
|
2017-02-17 19:11:26 +00:00
|
|
|
/bin/bash /home/sats/satsd/source/update 2>> /home/sats/satsd/log/update.log >> /home/sats/satsd/log/update.log;
|
2017-01-26 12:50:56 +00:00
|
|
|
|
|
|
|
fi;
|
|
|
|
|