From 82c4c2cca78acf56c98ecf85a9071fbd782d1627 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 3 Feb 2025 11:28:36 +0100 Subject: [PATCH] update build.func --- misc/build.func | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/build.func b/misc/build.func index 01951349..4653567d 100644 --- a/misc/build.func +++ b/misc/build.func @@ -688,6 +688,11 @@ config_file(){ whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Default distribution for $APP" "${var_os} ${var_version} \n \nIf the default Linux distribution is not adhered to, script support will be discontinued. \n" 10 58 CONFIG_FILE="/opt/community-scripts/.settings" + + if [[ -f "/opt/community-scripts/${NSAPP}.conf" ]]; then + CONFIG_FILE="/opt/community-scripts/${NSAPP}.conf" + fi + if CONFIG_FILE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set absolute path to config file" 8 58 $CONFIG_FILE --title "CONFIG FILE" 3>&1 1>&2 2>&3); then if [[ ! -f "$CONFIG_FILE" ]]; then echo -e "${CROSS}${RD}Config file not found, using the default values.${CL}"