mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Clean after conflict
This commit is contained in:
parent
40bb0795bd
commit
a62513b0b0
1 changed files with 4 additions and 5 deletions
|
@ -77,6 +77,8 @@ ynh_add_fpm_config () {
|
|||
if [ -n "$usage" ] || [ -n "$footprint" ]; then
|
||||
use_template=0
|
||||
fi
|
||||
# Do not use a dedicated service by default
|
||||
dedicated_service=${dedicated_service:-0}
|
||||
|
||||
# Set the default PHP-FPM version by default
|
||||
phpversion="${phpversion:-$YNH_PHP_VERSION}"
|
||||
|
@ -98,14 +100,10 @@ ynh_add_fpm_config () {
|
|||
ynh_add_app_dependencies --package="$package"
|
||||
fi
|
||||
|
||||
# Do not use a dedicated service by default
|
||||
dedicated_service=${dedicated_service:-0}
|
||||
|
||||
if [ $dedicated_service -eq 1 ]
|
||||
then
|
||||
local fpm_service="php${phpversion}-fpm-$app"
|
||||
local fpm_config_dir="/etc/php/$phpversion/dedicated-fpm"
|
||||
local old_fpm_config_dir="/etc/php/$phpversion/fpm"
|
||||
else
|
||||
local fpm_service="php${phpversion}-fpm"
|
||||
local fpm_config_dir="/etc/php/$phpversion/fpm"
|
||||
|
@ -128,6 +126,7 @@ ynh_add_fpm_config () {
|
|||
# Migrate from mutual php service to dedicated one.
|
||||
if [ $dedicated_service -eq 1 ]
|
||||
then
|
||||
local old_fpm_config_dir="/etc/php/$phpversion/fpm"
|
||||
# If a config file exist in the common pool, move it.
|
||||
if [ -e "$old_fpm_config_dir/pool.d/$app.conf" ]
|
||||
then
|
||||
|
@ -163,7 +162,7 @@ ynh_add_fpm_config () {
|
|||
ynh_get_scalable_phpfpm --usage=$usage --footprint=$footprint
|
||||
|
||||
# Copy the default file
|
||||
cp "$fpm_config_dir/pool.d/www.conf" "$finalphpconf"
|
||||
cp "/etc/php/$phpversion/fpm/pool.d/www.conf" "$finalphpconf"
|
||||
|
||||
# Replace standard variables into the default file
|
||||
ynh_replace_string --match_string="^\[www\]" --replace_string="[$app]" --target_file="$finalphpconf"
|
||||
|
|
Loading…
Add table
Reference in a new issue