mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update data/helpers.d/php
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
10d33d5753
commit
94cecf682d
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ ynh_add_fpm_config () {
|
||||||
if [ ! -e "$phpfpm_path" ]; then
|
if [ ! -e "$phpfpm_path" ]; then
|
||||||
phpfpm_path="../settings/conf/php-fpm.conf" # Into the restore script, the php-fpm template is not at the same place
|
phpfpm_path="../settings/conf/php-fpm.conf" # Into the restore script, the php-fpm template is not at the same place
|
||||||
fi
|
fi
|
||||||
|
# Make sure now that the template indeed exists
|
||||||
|
[ -e "$phpfpm_path" ] || ynh_die --message="Unable to find template to configure php-fpm."
|
||||||
cp "$phpfpm_path" "$finalphpconf"
|
cp "$phpfpm_path" "$finalphpconf"
|
||||||
ynh_replace_string --match_string="__NAMETOCHANGE__" --replace_string="$app" --target_file="$finalphpconf"
|
ynh_replace_string --match_string="__NAMETOCHANGE__" --replace_string="$app" --target_file="$finalphpconf"
|
||||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$finalphpconf"
|
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$finalphpconf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue