Fixed nginx-nonPHP CMS
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user