Update 'Scripts/EnableSSL.sh'
This commit is contained in:
@@ -13,7 +13,7 @@ fi
|
|||||||
|
|
||||||
#Backing-up and removing current config
|
#Backing-up and removing current config
|
||||||
sed -n '/#beginConf/,/#endConf/p' /etc/"$webservice"/sites-enabled/"$confname" > /tmp/"$confname"-config
|
sed -n '/#beginConf/,/#endConf/p' /etc/"$webservice"/sites-enabled/"$confname" > /tmp/"$confname"-config
|
||||||
sed -n -i '/#beginConf/{:a;N;/#endConf/!ba;N;s/.*\n/#ConfHere1\n/};p' /etc/"$webservice"/sites-enabled/"$confname"
|
sed -n -i '/#beginConf/{:a;N;/#endConf/!ba;N;s/.*\n/#ConfHere\n/};p' /etc/"$webservice"/sites-enabled/"$confname"
|
||||||
systemctl reload $webservice
|
systemctl reload $webservice
|
||||||
|
|
||||||
#Enabling SSL
|
#Enabling SSL
|
||||||
|
|||||||
Reference in New Issue
Block a user