We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9da25 commit a68b6ebCopy full SHA for a68b6eb
upd/convert-templates.sh upd/convert_templates.shupd/convert-templates.sh renamed to upd/convert_templates.sh
upd/convert_webip.sh
@@ -3,7 +3,13 @@
3
# Include vesta.conf
4
source /usr/local/vesta/conf/vesta.conf
5
6
-# Remove ol ip definitions from vesta.conf
+# Check if old scheme is in use
7
+check_oldip=$(grep "^Listen" /etc/$WEB_SYSTEM/conf.d/vesta.conf)
8
+if [ -z "$check_oldip" ]; then
9
+ exit
10
+fi
11
+
12
+# Remove old ip definitions from vesta.conf
13
sed -i "/^Listen/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
14
sed -i "/^NameVirtualHost/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
15
sed -i "/^$/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
0 commit comments