Merge pull request #70 from YunoHost/kay0u-patch-1

check fpm folder
This commit is contained in:
Maniack Crudelis 2020-03-19 13:52:37 +01:00 committed by GitHub
commit caab800369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1585,10 +1585,10 @@ set_witness_files () {
create_witness_file "/var/log/witnessfile" file
# Config fpm
if [ -d "${lxc_dir}/etc/php5" ]; then
if [ -d "${lxc_dir}/etc/php5/fpm" ]; then
create_witness_file "/etc/php5/fpm/pool.d/witnessfile.conf" file
fi
if [ -d "${lxc_dir}/etc/php/7.0" ]; then
if [ -d "${lxc_dir}/etc/php/7.0/fpm" ]; then
create_witness_file "/etc/php/7.0/fpm/pool.d/witnessfile.conf" file
fi
@ -1636,10 +1636,10 @@ check_witness_files () {
check_file_exist "/var/log/witnessfile"
# Config fpm
if [ -d "${lxc_dir}/etc/php5" ]; then
if [ -d "${lxc_dir}/etc/php5/fpm" ]; then
check_file_exist "/etc/php5/fpm/pool.d/witnessfile.conf" file
fi
if [ -d "${lxc_dir}/etc/php/7.0" ]; then
if [ -d "${lxc_dir}/etc/php/7.0/fpm" ]; then
check_file_exist "/etc/php/7.0/fpm/pool.d/witnessfile.conf" file
fi