mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-06-13 09:11:05 +02:00
smarter way to use restart command in other scripts
This commit is contained in:
@@ -24,7 +24,6 @@ json_list() {
|
||||
echo "{"
|
||||
for str in $logs; do
|
||||
eval $str
|
||||
CMD=${CMD//\"/\\\"}
|
||||
echo -n ' "'$ID'": {
|
||||
"CMD": "'$CMD'",
|
||||
"UNDO": "'$UNDO'",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user