From 8752c5a3a9535fb141a71507c187752f047689f1 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 12 Dec 2019 11:32:09 +0100 Subject: [PATCH] Added install script CMS:None module --- CMS/none/nginx-conf.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 CMS/none/nginx-conf.sh diff --git a/CMS/none/nginx-conf.sh b/CMS/none/nginx-conf.sh new file mode 100644 index 0000000..65025c5 --- /dev/null +++ b/CMS/none/nginx-conf.sh @@ -0,0 +1,4 @@ +sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' /tmp/nginx-siteconf +wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/none/Nginx-unconfigured -O /tmp/nginx-siteconf +sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-enabled/"$domain" +systemctl restart nginx \ No newline at end of file