mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Fix php-fpm
This commit is contained in:
parent
8f7e97629b
commit
924d805b4c
2 changed files with 12 additions and 2 deletions
|
@ -82,6 +82,14 @@ ynh_print_info "Removing the dedicated system user"
|
|||
# Delete a system user
|
||||
ynh_system_user_delete "$app"
|
||||
|
||||
#=================================================
|
||||
# START PHP-FPM 7.0 FPM
|
||||
#=================================================
|
||||
ynh_print_info "Start php7.0-fpm"
|
||||
|
||||
#Sometimes with package_check php7.0-fpm fail to reload and stop. So starting the service, just in case.
|
||||
systemctl start php7.0-fpm
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -117,7 +117,8 @@ ynh_system_user_create "$app"
|
|||
ynh_print_info "Upgrading php-fpm configuration..."
|
||||
|
||||
#Ugly move waiting 'ynh_add_fpm_config --phpversion='' released
|
||||
mv "/etc/php/7.2/fpm/pool.d/$app.conf" "/etc/php/7.0/fpm/pool.d/$app.conf"
|
||||
mv -f "/etc/php/7.2/fpm/pool.d/$app.conf" "/etc/php/7.0/fpm/pool.d/$app.conf"
|
||||
sleep 5
|
||||
systemctl reload php7.2-fpm
|
||||
systemctl reload php7.0-fpm
|
||||
|
||||
|
@ -125,7 +126,8 @@ systemctl reload php7.0-fpm
|
|||
ynh_add_fpm_config --phpversion="7.2"
|
||||
|
||||
#Ugly move waiting 'ynh_add_fpm_config --phpversion='' released
|
||||
mv "/etc/php/7.0/fpm/pool.d/$app.conf" "/etc/php/7.2/fpm/pool.d/$app.conf"
|
||||
mv -f "/etc/php/7.0/fpm/pool.d/$app.conf" "/etc/php/7.2/fpm/pool.d/$app.conf"
|
||||
sleep 5
|
||||
systemctl reload php7.0-fpm
|
||||
systemctl reload php7.2-fpm
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue