mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
[yolo] Handle different default php version for witness file
This commit is contained in:
parent
7f926a791c
commit
37f9eda50b
2 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,9 @@ LXC_NAME="ynh-appci-$DIST-$ARCH-$YNH_BRANCH-test"
|
|||
|
||||
readonly lock_file="./pcheck.lock"
|
||||
|
||||
DEFAULT_PHP_VERSION="7.3"
|
||||
[[ "$DIST" == "bullseye" ]] && DEFAULT_PHP_VERSION="7.4"
|
||||
|
||||
#=================================================
|
||||
# LXC helpers
|
||||
#=================================================
|
||||
|
|
|
@ -28,7 +28,7 @@ set_witness_files () {
|
|||
create_witness_file "/var/log/witnessfile" file
|
||||
|
||||
# Config fpm
|
||||
create_witness_file "/etc/php/7.3/fpm/pool.d/witnessfile.conf" file
|
||||
create_witness_file "/etc/php/$DEFAULT_PHP_VERSION/fpm/pool.d/witnessfile.conf" fime
|
||||
|
||||
# Config logrotate
|
||||
create_witness_file "/etc/logrotate.d/witnessfile" file
|
||||
|
@ -72,7 +72,7 @@ check_witness_files () {
|
|||
check_file_exist "/var/log/witnessfile"
|
||||
|
||||
# Config fpm
|
||||
check_file_exist "/etc/php/7.3/fpm/pool.d/witnessfile.conf"
|
||||
check_file_exist "/etc/php/$DEFAULT_PHP_VERSION/fpm/pool.d/witnessfile.conf"
|
||||
|
||||
# Config logrotate
|
||||
check_file_exist "/etc/logrotate.d/witnessfile"
|
||||
|
|
Loading…
Add table
Reference in a new issue