Cleanup EL8 Output

This commit is contained in:
2021-01-27 11:41:28 +01:00
parent 8f9a9e7c95
commit 39da2f54d7
4 changed files with 3 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
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
restorecon -r /var/www/ > $OUTPUT 2>&1
fi

View File

@@ -22,5 +22,5 @@ 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
restorecon -r /var/www/ > $OUTPUT 2>&1
fi

View File

@@ -54,7 +54,7 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
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
restorecon -r /var/www/ > $OUTPUT 2>&1
fi
#Makeing wordpress Finalize script and setting login Notice

View File

@@ -64,7 +64,6 @@ elif [ "$(grep -oP '(?<=^PLATFORM_ID=).+' /etc/os-release | tr -d '"')" = "platf
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
PKGLIST="dnf"
shortdist=el8
echo "The support for this os is being worked on"
else
echo "This os in not supported"
exit