From 252f8d2db688cd3e8f16d749d5dcb9aa8711f269 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sat, 23 Sep 2023 21:16:48 -0500 Subject: [PATCH] Change gateway.conf to gateway.ini --- change-casaos-web-ui-port/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/change-casaos-web-ui-port/run.sh b/change-casaos-web-ui-port/run.sh index 3adbdb9..9ae4f54 100644 --- a/change-casaos-web-ui-port/run.sh +++ b/change-casaos-web-ui-port/run.sh @@ -10,10 +10,10 @@ if ! [[ "$new_port" =~ ^[0-9]+$ ]]; then fi # Backup the original configuration file -cp /etc/casaos/gateway.conf /etc/casaos/gateway.conf.bak +cp /etc/casaos/gateway.ini /etc/casaos/gateway.ini.bak # Change the port number in the configuration file -sed -i "s/^port=[0-9]\+/port=$new_port/" /etc/casaos/gateway.conf +sed -i "s/^port=[0-9]\+/port=$new_port/" /etc/casaos/gateway.ini # Restart the CasaOS Gateway service systemctl restart casaos-gateway.service