فهرست منبع

fix(mtaserver): auto-install no longer waits at a prompt (#2418)

Bourne-ID 6 سال پیش
والد
کامیت
3d43c4ce57
1فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 8 3
      lgsm/functions/command_install_resources_mta.sh

+ 8 - 3
lgsm/functions/command_install_resources_mta.sh

@@ -19,7 +19,12 @@ fn_install_resources(){
 
 fn_print_header
 
-fn_print_warning_nl "Installing the default resources with existing resources may cause issues."
-if fn_prompt_yn "Do you want to install MTA default resources?" Y; then
-	fn_install_resources
+if [ -z "${autoinstall}" ]; then
+	fn_print_warning_nl "Installing the default resources with existing resources may cause issues."
+	if fn_prompt_yn "Do you want to install MTA default resources?" Y; then
+		fn_install_resources
+	fi
+else
+	fn_print_warning_nl "Default resources are not installed when using ./${selfname} auto-install."
+	fn_print_information_nl "To install default resources use ./${selfname} install"
 fi