smarter way to use restart command in other scripts

This commit is contained in:
Serghey Rodin 2016-11-09 17:45:43 +02:00
commit 51be240bd4
8 changed files with 35 additions and 1 deletions

View file

@ -30,6 +30,11 @@ send_email_report() {
# Action #
#----------------------------------------------------------#
# Exit
if [ "$1" = "no" ]; then
exit
fi
# Schedule restart
if [ "$1" = 'scheduled' ]; then
echo "$BIN/$SCRIPT now" >> $VESTA/data/queue/restart.pipe