mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-07-06 04:51:52 -07:00
check if old scheme is used
This commit is contained in:
parent
3c9da257fc
commit
a68b6ebc3d
2 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,13 @@
|
||||||
# Include vesta.conf
|
# Include vesta.conf
|
||||||
source /usr/local/vesta/conf/vesta.conf
|
source /usr/local/vesta/conf/vesta.conf
|
||||||
|
|
||||||
# Remove ol ip definitions from vesta.conf
|
# Check if old scheme is in use
|
||||||
|
check_oldip=$(grep "^Listen" /etc/$WEB_SYSTEM/conf.d/vesta.conf)
|
||||||
|
if [ -z "$check_oldip" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove old ip definitions from vesta.conf
|
||||||
sed -i "/^Listen/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
sed -i "/^Listen/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
||||||
sed -i "/^NameVirtualHost/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
sed -i "/^NameVirtualHost/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
||||||
sed -i "/^$/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
sed -i "/^$/d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue