UltimateByte 9 лет назад
Родитель
Сommit
98614ce240
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lgsm/functions/command_backup.sh

+ 2 - 2
lgsm/functions/command_backup.sh

@@ -49,10 +49,10 @@ check_status.sh
 if [ "${status}" != "0" ]; then
 if [ "${status}" != "0" ]; then
 	echo ""
 	echo ""
 	fn_print_warning_nl "${servicename} is currently running."
 	fn_print_warning_nl "${servicename} is currently running."
-	fin_script_log_warning "${servicename} is currently running."
+	fn_script_log_warn "${servicename} is currently running."
 	sleep 1
 	sleep 1
 	while true; do
 	while true; do
-		read -p -e -i "n" "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 "Stopping the server"; command_stop.sh; serverstopped="yes"; break;;
 		[Yy]* ) fn_script_log "Stopping the server"; command_stop.sh; serverstopped="yes"; break;;
 		[Nn]* ) fn_script_log "Not stopping the server"; serverstopped="no"; break;;
 		[Nn]* ) fn_script_log "Not stopping the server"; serverstopped="no"; break;;