Merge branch 'stable' into v2.0.4-dev

This commit is contained in:
Usman Nasir
2021-01-19 14:53:42 +05:00
2 changed files with 10 additions and 2 deletions

View File

@@ -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" {} \;

View File

@@ -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