From d42d01b0f5abf2a075c9a367a125787ef36b3699 Mon Sep 17 00:00:00 2001 From: WhatTheServer Date: Thu, 31 Dec 2020 09:39:29 -0500 Subject: [PATCH 1/2] Update fixperms.sh Spliced in fix from latest report that hidden files only were being fixed: https://github.com/whattheserver/cyberpanel-fixperms/issues/4 after previously addressing this in. https://github.com/whattheserver/cyberpanel-fixperms/issues/1 --- CPScripts/fixperms.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CPScripts/fixperms.sh b/CPScripts/fixperms.sh index d2d588512..37c2f5da2 100644 --- a/CPScripts/fixperms.sh +++ b/CPScripts/fixperms.sh @@ -184,7 +184,7 @@ fixperms_cyberpanel () { find "$HOMEDIR"/public_html -type d -exec chmod "$verbose" 755 {} \; find "$HOMEDIR"/public_html -type f -print0 | xargs -d$'\n' -r chmod "$verbose" 644 find "$HOMEDIR"/public_html -name '*.cgi' -print0 -o -name '*.pl' | xargs -0 -r chmod "$verbose" 755 - #chown $verbose -R "$account":"$account" "$HOMEDIR"/public_html/* + chown $verbose -R "$account":"$account" "$HOMEDIR"/public_html/* # Hidden files test support: https://serverfault.com/a/156481 chown "$verbose" -R "$account":"$account" "$HOMEDIR"/public_html/.[^.]* find "$HOMEDIR"/* -name .htaccess -exec chown "$verbose" "$account"."$account" {} \; @@ -293,6 +293,7 @@ fixperms_cpanel () { find "$HOMEDIR"/public_html -type d -exec chmod "$verbose" 755 {} \; find "$HOMEDIR"/public_html -type f -print0 | xargs -0 -d$'\n' -r chmod "$verbose" 644 find "$HOMEDIR"/public_html -name '*.cgi' -print0 -o -name '*.pl' | xargs -0 -r chmod "$verbose" 755 + chown $verbose -R "$account":"$account" "$HOMEDIR"/public_html/* # fix hidden files and folders like .well-known/ with root or other user perms chown "$verbose" -R "$account":"$account" "$HOMEDIR"/public_html/.[^.]* find "$HOMEDIR"/* -name .htaccess -exec chown "$verbose" "$account"."$account" {} \; From e1bb1bf72f17a788034c3fb2604c0129dc2494ef Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sun, 17 Jan 2021 00:39:18 +0100 Subject: [PATCH 2/2] update redis installation to remi repo --- cyberpanel.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 922dd718b..a8bbe272c 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -569,7 +569,14 @@ memcached_installation() { redis_installation() { if [[ $SERVER_OS == "CentOS" ]]; then - yum install -y lsphp74-redis lsphp73-redis lsphp72-redis lsphp71-redis lsphp70-redis lsphp56-redis lsphp55-redis lsphp54-redis redis + if [[ CENTOS_8 == "True" ]]; then + yum install -y lsphp74-redis lsphp73-redis lsphp72-redis lsphp71-redis lsphp70-redis lsphp56-redis lsphp55-redis lsphp54-redis redis + else + yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm + yum-config-manager --disable remi + yum-config-manager --disable remi-safe + yum -y --enablerepo=remi install redis + fi fi if [[ $SERVER_OS == "Ubuntu" ]]; then DEBIAN_FRONTEND=noninteractive apt install -y lsphp74-redis