Update 'Scripts/EnableSSL.sh'

This commit is contained in:
bprieshof
2019-12-12 14:18:28 +01:00
parent 3714315051
commit 30da62099f

View File

@@ -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