From 4e4416b47e5d81637ba5d782f5bed7f97671258c Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 26 Aug 2020 11:36:51 +0000 Subject: [PATCH] Add 'CMS/wordpress/apache-conf.sh' --- CMS/wordpress/apache-conf.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CMS/wordpress/apache-conf.sh diff --git a/CMS/wordpress/apache-conf.sh b/CMS/wordpress/apache-conf.sh new file mode 100644 index 0000000..5145bbb --- /dev/null +++ b/CMS/wordpress/apache-conf.sh @@ -0,0 +1,6 @@ +wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/wordpress/Apache-unconfigured -O /tmp/apache-siteconf +sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' /tmp/apache-siteconf +sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/apache-siteconf' -e '/#ConfHere/c\' /etc/apache2/sites-available/"$sitename"_"$site_ext".conf + +chown "$sitename":"$sitename" -R /var/www/"$domain"/html +systemctl reload apache2 php$phpver-fpm \ No newline at end of file