|
|
@@ -36,11 +36,8 @@ if [ "$1" = "no" ]; then
|
|
|
fi
|
|
|
|
|
|
# Schedule restart
|
|
|
-if [ "$1" = 'scheduled' ]; then
|
|
|
- echo "$BIN/$SCRIPT now" >> $HESTIA/data/queue/restart.pipe
|
|
|
- exit
|
|
|
-fi
|
|
|
-if [ -z "$1" ] && [ "$SCHEDULED_RESTART" = 'yes' ]; then
|
|
|
+if [ "$1" = 'scheduled' ] || [ -z "$1" -a "$SCHEDULED_RESTART" = 'yes' ]; then
|
|
|
+ sed -i "/$SCRIPT/d" $HESTIA/data/queue/restart.pipe
|
|
|
echo "$BIN/$SCRIPT now" >> $HESTIA/data/queue/restart.pipe
|
|
|
exit
|
|
|
fi
|