Add 'CMS/wordpress/apache-conf.sh'
This commit is contained in:
6
CMS/wordpress/apache-conf.sh
Normal file
6
CMS/wordpress/apache-conf.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user