create php directories if they don't exist
This commit is contained in:
parent
73a5cd1bcb
commit
bdbdff042b
12
install
12
install
@ -13,7 +13,7 @@
|
|||||||
# https://github.com/armbian/config/blob/master/debian-software
|
# https://github.com/armbian/config/blob/master/debian-software
|
||||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||||
#
|
#
|
||||||
# version: 1.0.6
|
# version: 1.0.7
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ $(id -u) -ne 0 ]]; then
|
if [[ $(id -u) -ne 0 ]]; then
|
||||||
@ -323,6 +323,16 @@ for service in nginx ${phpfpm} samba flashmemory ssh ${ntp} timezone monit rrdca
|
|||||||
${confCmd} ${service}
|
${confCmd} ${service}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# create php directories if they don't exist
|
||||||
|
modDir="/var/lib/php/modules"
|
||||||
|
if [ ! -d "${modDir}" ]; then
|
||||||
|
mkdir --parents --mode=0755 ${modDir}
|
||||||
|
fi
|
||||||
|
sessDir="/var/lib/php/sessions"
|
||||||
|
if [ ! -d "${sessDir}" ]; then
|
||||||
|
mkdir --parents --mode=1733 ${sessDir}
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${arch}" == "amd64" ]] || [[ "${arch}" == "i386" ]]; then
|
if [[ "${arch}" == "amd64" ]] || [[ "${arch}" == "i386" ]]; then
|
||||||
# skip ionice on x86 boards
|
# skip ionice on x86 boards
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user