fix: startup script sources wrong config file for custom ports
The start-both.sh script was sourcing paqctl.conf which doesn't exist. Changed to settings.conf where LISTEN_PORT and GFK_VIO_PORT are saved. This caused iptables rules to always use default ports (8443/45000) even when user configured different ports, resulting in port mismatch.
This commit is contained in:
@@ -1600,7 +1600,7 @@ GFK_DIR="\${INSTALL_DIR}/gfk"
|
|||||||
ROLE="${ROLE}"
|
ROLE="${ROLE}"
|
||||||
|
|
||||||
# Source config for ports
|
# Source config for ports
|
||||||
[ -f "\${INSTALL_DIR}/paqctl.conf" ] && . "\${INSTALL_DIR}/paqctl.conf"
|
[ -f "\${INSTALL_DIR}/settings.conf" ] && . "\${INSTALL_DIR}/settings.conf"
|
||||||
|
|
||||||
# Apply firewall rules (server only)
|
# Apply firewall rules (server only)
|
||||||
if [ "\$ROLE" = "server" ]; then
|
if [ "\$ROLE" = "server" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user