mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-04-05 09:04:07 -04:00
Change gateway.conf to gateway.ini
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user