File tree Expand file tree Collapse file tree 8 files changed +35
-1
lines changed
Expand file tree Collapse file tree 8 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ json_list() {
2424 echo " {"
2525 for str in $logs ; do
2626 eval $str
27- CMD=${CMD// \" / \\\" }
2827 echo -n ' "' $ID ' ": {
2928 "CMD": "' $CMD ' ",
3029 "UNDO": "' $UNDO ' ",
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ send_email_report() {
3535# Action #
3636# ----------------------------------------------------------#
3737
38+ # Exit
39+ if [ " $1 " = " no" ]; then
40+ exit
41+ fi
42+
3843# Schedule restart
3944if [ " $1 " = ' scheduled' ]; then
4045 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ send_email_report() {
3030# Action #
3131# ----------------------------------------------------------#
3232
33+ # Exit
34+ if [ " $1 " = " no" ]; then
35+ exit
36+ fi
37+
3338# Schedule restart
3439if [ " $1 " = ' scheduled' ]; then
3540 echo " $BIN /$SCRIPT now" >> $VESTA /data/queue/restart.pipe
You can’t perform that action at this time.
0 commit comments