Skip to content

Commit 63e44e7

Browse files
committed
Comment out prompt for updating an existing host for automation to proceed smoothly
1 parent dbb6828 commit 63e44e7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

nginx_proxy_manager_cli.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -860,15 +860,16 @@ check_existing_proxy_host() {
860860
EXISTING_HOST=$(echo "$RESPONSE" | jq -r --arg DOMAIN "$DOMAIN_NAMES" '.[] | select(.domain_names[] == $DOMAIN)')
861861

862862
if [ -n "$EXISTING_HOST" ]; then
863-
echo -e "\n 🔔 Proxy host for $DOMAIN_NAMES already exists.${COLOR_GREEN}"
864-
read -p " 👉 Do you want to update it with the new configuration? (y/n): " -r
865-
if [[ $REPLY =~ ^[Yy]$ ]]; then
863+
echo -e "\n 🔔 Proxy host for $DOMAIN_NAMES already exists. \n Updating Configuration... ${COLOR_GREEN}"
864+
# Comment out prompt for automation purposes
865+
# read -p " 👉 Do you want to update it with the new configuration? (y/n): " -r
866+
# if [[ $REPLY =~ ^[Yy]$ ]]; then
866867
HOST_ID=$(echo "$EXISTING_HOST" | jq -r '.id')
867868
update_proxy_host "$HOST_ID"
868-
else
869-
echo -e "${COLOR_RESET} No changes made.\n"
870-
exit 0
871-
fi
869+
# else
870+
# echo -e "${COLOR_RESET} No changes made.\n"
871+
# exit 0
872+
# fi
872873
else
873874
create_new_proxy_host
874875
fi

0 commit comments

Comments
 (0)