From f782a32e9c3ba4c3fbbe32ead12ae80b42db5d0a Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sat, 9 Jan 2021 16:08:29 +0100 Subject: [PATCH] fix: bug in assigning correct port to instances --- scripts/install_moonraker.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install_moonraker.sh b/scripts/install_moonraker.sh index e663fed..95938b3 100755 --- a/scripts/install_moonraker.sh +++ b/scripts/install_moonraker.sh @@ -204,7 +204,7 @@ create_multi_moonraker_instance(){ moonraker_conf_creation(){ ### default moonraker port - PORT=7125 + DEFAULT_PORT=7125 ### get printer and moonraker config directory source_kiauh_ini @@ -227,7 +227,7 @@ moonraker_conf_creation(){ while [ $INSTANCE -le $INSTANCE_COUNT ]; do status_msg "Creating moonraker-$INSTANCE.conf in $MOONRAKER_CONF_LOC" if [ ! -f $MOONRAKER_CONF_LOC/moonraker-$INSTANCE.conf ]; then - PORT=$(expr $PORT + $INSTANCE - 1) + PORT=$(expr $DEFAULT_PORT + $INSTANCE - 1) create_multi_moonraker_conf && ok_msg "moonraker-$INSTANCE.conf created!" else warn_msg "There is already a file called 'moonraker-$INSTANCE.conf'!" @@ -260,7 +260,7 @@ cors_domains: http://*.local http://app.fluidd.xyz https://app.fluidd.xyz - http://$HOSTNAME:* + http://$HOSTNAME [update_manager] #client_repo: @@ -290,7 +290,7 @@ cors_domains: http://*.local http://app.fluidd.xyz https://app.fluidd.xyz - http://$HOSTNAME:* + http://$HOSTNAME [update_manager] #client_repo: