Added messages to explain the config variables.

This commit is contained in:
2025-04-04 19:04:22 +03:00
parent 78dda6afdb
commit 4c35134d64

View File

@@ -160,6 +160,7 @@ update_config() {
print_header "Update configs."
echo "Key: API_PORT, Current value: \`$API_PORT\`"
echo "This is the internal port on your server's localhost network, where the Middleware will be listening to."
read -p " > Enter new value (leave empty to pass): " NEW_API_PORT
echo
if [[ $NEW_API_PORT == "" ]]; then
@@ -167,6 +168,7 @@ update_config() {
fi
echo "Key: CONTAINER_NAME, Current value: \`$CONTAINER_NAME\`"
echo "This is the name of the Docker Container we will create for this middleware."
read -p " > Enter new value (leave empty to pass): " NEW_CONTAINER_NAME
echo
if [[ $NEW_CONTAINER_NAME == "" ]]; then
@@ -174,6 +176,9 @@ update_config() {
fi
echo "Key: HAS_LOCAL_DBS, Current value: \`$HAS_LOCAL_DBS\`"
echo "This will change the type of the network of the docker container, between a bridge or a host network."
echo "Enter [0] If your database is on this server"
echo "Enter [1] if your database is on another server"
read -p " > Enter new value (leave empty to pass): " NEW_HAS_LOCAL_DBS
echo
if [[ $NEW_HAS_LOCAL_DBS == "" ]]; then