Fixed nginx-nonPHP CMS

This commit is contained in:
2020-12-10 13:45:20 +01:00
parent ba80b923d0
commit a87850f6d0
3 changed files with 15 additions and 13 deletions

View File

@@ -1,3 +1,9 @@
#Creating webfolder
mkdir -p /var/www/"$domain"/html
#Ceating content
echo "<html><head></head><body>$webserv has been succsefully installed by the Wizard</body></html>" > /var/www/$domain/html/index.html
#Do not generate php pool when php is not installed
if [ $webserv != nginx_nonphp ]; then
@@ -9,20 +15,12 @@ useradd -g "$sitename" "$sitename"
systemctl reload $phpFPMService
#Creating webfolder
mkdir -p /var/www/"$domain"/html
#Ceating content
echo "<html><head></head><body>$webserv has been succsefully installed by the Wizard</body></html>" > /var/www/$domain/html/index.html
#Setting Permsissions
chown "$sitename":"$sitename" -R /var/www/"$domain"/html
fi
if [ "$shortdist" = "el8" ]; then
#Setting SeLiux perms for centos
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/$domain/html(/.*)?" > $OUTPUT 2>&1
restorecon -vr /var/www/ > $OUTPUT 2>&1
fi
fi