2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00
This commit is contained in:
litingt
2018-11-18 22:06:55 -05:00
parent b4c6425ee3
commit 5311d7c01f

View File

@@ -9,7 +9,7 @@ fi
port=`awk -F' ' '/^[Ll]isten / {print $2}' $config`
echo "The original httpd port is $port in $config"
echo "start to change httpd listen port to 8898"
echo "start to change httpd listen port to $2"
sed -i "s/^Listen $1/Listen $2/g" $config
if [ -f "/etc/apache2/sites-enabled/000-default.conf" ]; then
sed -i "s/VirtualHost \*:$1/VirtualHost \*:$2/g" /etc/apache2/sites-enabled/000-default.conf