From 0ce093960787e0d9af8c8fba1f7733cc17ba9afb Mon Sep 17 00:00:00 2001
From: UltimateByte <robin.labadie@gmail.com>
Date: Thu, 20 Oct 2016 16:35:26 +0200
Subject: [PATCH] exitbypass=1

---
 lgsm/functions/command_backup.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lgsm/functions/command_backup.sh b/lgsm/functions/command_backup.sh
index d094f39e9..fa2c9dd7e 100644
--- a/lgsm/functions/command_backup.sh
+++ b/lgsm/functions/command_backup.sh
@@ -54,7 +54,7 @@ if [ "${status}" != "0" ]; then
 	while true; do
 		read -e -i "n" -p "Stop ${servicename} while running the backup? [y/N]" yn
 		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;;
 		* ) echo "Please answer yes or no.";;
 	esac
@@ -131,6 +131,7 @@ if [ $? == 0 ]; then
 	fi
 	# Restart the server if it was stopped for the backup
 	if [ "${serverstopped}" == "yes" ]; then
+		exitbypass=1
 		command_start.sh
 	fi
 else