mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
try to update source to 0.9.5
This commit is contained in:
parent
dcc5a94d57
commit
4e92de26e6
6 changed files with 30 additions and 30 deletions
|
@ -30,7 +30,7 @@ group = __USER__
|
|||
; specific port;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = /var/run/php5-fpm-__NAMETOCHANGE__.sock
|
||||
listen = /var/run/php7.2-fpm-__NAMETOCHANGE__.sock
|
||||
|
||||
; Set listen(2) backlog. A value of '-1' means unlimited.
|
||||
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"multi_instance": true,
|
||||
"services": [
|
||||
"nginx",
|
||||
"php7.0-fpm"
|
||||
"php7.2-fpm"
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
|
|
|
@ -48,8 +48,8 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
|||
# BACKUP THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/php5/fpm/pool.d/$app.conf"
|
||||
ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||
ynh_backup "/etc/php7.2/fpm/pool.d/$app.conf"
|
||||
ynh_backup "/etc/php7.2/fpm/conf.d/20-$app.ini"
|
||||
|
||||
# Backup directory location for the app from where the script is executed and
|
||||
# which will be compressed afterward
|
||||
|
|
|
@ -55,7 +55,7 @@ ynh_app_setting_set $app is_public $is_public
|
|||
|
||||
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||
then
|
||||
ynh_install_app_dependencies php-sqlite3
|
||||
ynh_install_app_dependencies php7.2-sqlite3
|
||||
else
|
||||
ynh_install_app_dependencies php5-sqlite
|
||||
fi
|
||||
|
|
|
@ -73,8 +73,8 @@ chown -R $app:$app $final_path
|
|||
#=================================================
|
||||
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||
then
|
||||
ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
|
||||
ynh_restore_file "/etc/php/7.0/fpm/conf.d/20-$app.ini"
|
||||
ynh_restore_file "/etc/php/7.2/fpm/pool.d/$app.conf"
|
||||
ynh_restore_file "/etc/php/7.2/fpm/conf.d/20-$app.ini"
|
||||
else
|
||||
ynh_restore_file "/etc/php5/fpm/pool.d/$app.conf"
|
||||
ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||
|
@ -88,7 +88,7 @@ fi
|
|||
|
||||
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||
then
|
||||
ynh_install_app_dependencies php7.0-sqlite3
|
||||
ynh_install_app_dependencies php7.2-sqlite3
|
||||
else
|
||||
ynh_install_app_dependencies php5-sqlite
|
||||
fi
|
||||
|
@ -100,7 +100,7 @@ fi
|
|||
#=================================================
|
||||
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||
then
|
||||
systemctl reload php7.0-fpm
|
||||
systemctl reload php7.2-fpm
|
||||
else
|
||||
systemctl reload php5-fpm
|
||||
fi
|
||||
|
|
|
@ -57,7 +57,7 @@ ynh_abort_if_errors
|
|||
|
||||
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||
then
|
||||
ynh_install_app_dependencies php-sqlite3
|
||||
ynh_install_app_dependencies php7.2-sqlite3
|
||||
else
|
||||
ynh_install_app_dependencies php5-sqlite
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue