update it to match all php ver

This commit is contained in:
qtwrk 2021-02-03 01:39:01 +01:00 committed by GitHub
parent e1bb1bf72f
commit 599ddf46c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -6,8 +6,12 @@
# Create the session path directories and chmod it for security to 1733 like the existing one is.
mkdir -p /var/lib/lsphp/session/lsphp{53,54,55,56,70,71,72,73,74}
chmod -R 1733 /var/lib/lsphp/session/lsphp{53,54,55,56,70,71,72,73,74}
for version in $(ls /usr/local/lsws|grep lsphp);
do
mkdir -p "/var/lib/lsphp/session/$version"
chmod -R 1733 "/var/lib/lsphp/session/$version"
done
YUM_CMD=$(which yum 2> /dev/null)