4
0
UltimateByte 9 жил өмнө
parent
commit
0ce0939607

+ 2 - 1
lgsm/functions/command_backup.sh

@@ -54,7 +54,7 @@ if [ "${status}" != "0" ]; then
 	while true; do
 	while true; do
 		read -e -i "n" -p "Stop ${servicename} while running the backup? [y/N]" yn
 		read -e -i "n" -p "Stop ${servicename} while running the backup? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) fn_script_log "User choose to stop the server"; command_stop.sh; serverstopped="yes"; break;;
+		[Yy]* ) exitbypass=1; fn_script_log "User choose to stop the server"; command_stop.sh; serverstopped="yes"; break;;
 		[Nn]* ) fn_script_log "User choose to not stop the server"; serverstopped="no"; break;;
 		[Nn]* ) fn_script_log "User choose to not stop the server"; serverstopped="no"; break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac
@@ -131,6 +131,7 @@ if [ $? == 0 ]; then
 	fi
 	fi
 	# Restart the server if it was stopped for the backup
 	# Restart the server if it was stopped for the backup
 	if [ "${serverstopped}" == "yes" ]; then
 	if [ "${serverstopped}" == "yes" ]; then
+		exitbypass=1
 		command_start.sh
 		command_start.sh
 	fi
 	fi
 else
 else