diff --git a/bin/v-list-user-log b/bin/v-list-user-log index f8581341..5f0b9004 100755 --- a/bin/v-list-user-log +++ b/bin/v-list-user-log @@ -24,7 +24,6 @@ json_list() { echo "{" for str in $logs; do eval $str - CMD=${CMD//\"/\\\"} echo -n ' "'$ID'": { "CMD": "'$CMD'", "UNDO": "'$UNDO'", diff --git a/bin/v-restart-cron b/bin/v-restart-cron index 305f2db2..ac9ea8b1 100755 --- a/bin/v-restart-cron +++ b/bin/v-restart-cron @@ -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 diff --git a/bin/v-restart-dns b/bin/v-restart-dns index fad2f704..4e7712a7 100755 --- a/bin/v-restart-dns +++ b/bin/v-restart-dns @@ -35,6 +35,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 diff --git a/bin/v-restart-ftp b/bin/v-restart-ftp index f554011c..2f1eab35 100755 --- a/bin/v-restart-ftp +++ b/bin/v-restart-ftp @@ -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 diff --git a/bin/v-restart-mail b/bin/v-restart-mail index 7080260e..92029722 100755 --- a/bin/v-restart-mail +++ b/bin/v-restart-mail @@ -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 diff --git a/bin/v-restart-proxy b/bin/v-restart-proxy index e050eb1c..25ab20bf 100755 --- a/bin/v-restart-proxy +++ b/bin/v-restart-proxy @@ -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 diff --git a/bin/v-restart-web b/bin/v-restart-web index a7ecf644..ab1afe6c 100755 --- a/bin/v-restart-web +++ b/bin/v-restart-web @@ -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 diff --git a/bin/v-restart-web-backend b/bin/v-restart-web-backend index 50cd940f..2d392c45 100755 --- a/bin/v-restart-web-backend +++ b/bin/v-restart-web-backend @@ -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