mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Update dependencies & service php5 to php7
This commit is contained in:
parent
508a2530d0
commit
1b0edcd5b1
8 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@ Standards-Version: 1.0.1
|
|||
|
||||
Package: cops-deps
|
||||
Version: 1.2-1
|
||||
Depends: php5-gd, php5-sqlite, php5-json, php5-intl
|
||||
Depends: php7.0-gd, php7.0-sqlite3, php7.0-json, php7.0-intl
|
||||
Architecture: all
|
||||
Description: meta package for cops dependencies
|
||||
COPS stands for Calibre OPDS (and HTML) Php Server.
|
||||
|
|
|
@ -14,7 +14,7 @@ location PATHTOCHANGE {
|
|||
try_files $uri $uri/ index.php;
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
|
||||
fastcgi_pass unix:/var/run/php7.0-fpm-NAMETOCHANGE.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
; 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.0-fpm-NAMETOCHANGE.sock
|
||||
|
||||
; Set listen(2) backlog. A value of '-1' means unlimited.
|
||||
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"multi_instance": true,
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm"
|
||||
"php7.0-fpm"
|
||||
],
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.4.0"
|
||||
|
|
|
@ -54,7 +54,7 @@ ynh_app_setting_set "$app" basicauthcreate "$basicauthcreate"
|
|||
finalnginxconf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||
ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf"
|
||||
|
||||
finalphpconf="/etc/php5/fpm/pool.d/${app}.conf"
|
||||
finalphpconf="/etc/php/7.0/fpm/pool.d/${app}.conf"
|
||||
ynh_app_setting_set "$app" finalphpconf "$finalphpconf"
|
||||
|
||||
# Install dependencies using Helpers
|
||||
|
@ -157,6 +157,6 @@ else
|
|||
fi
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service php5-fpm reload
|
||||
sudo service php7.0-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -75,6 +75,6 @@ fi
|
|||
REMOVE_SYS_USER "$runninguser"
|
||||
|
||||
# We reload the services
|
||||
sudo service php5-fpm reload
|
||||
sudo service php7.0-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -15,7 +15,7 @@ basicauthcreate=$(ynh_app_setting_get $app basicauthcreate)
|
|||
|
||||
# We install dependencies
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install php5-gd php5-sqlite php5-json php5-intl -y
|
||||
sudo apt-get install php7.0-gd php7.0-sqlite3 php7.0-json php7.0-intl -y
|
||||
|
||||
# Install dependencies using Helpers
|
||||
#ynh_package_install_from_equivs ../conf/cops-deps.control \
|
||||
|
@ -84,6 +84,6 @@ fi
|
|||
|
||||
# Restart webserver
|
||||
sudo service nginx reload
|
||||
sudo service php5-fpm reload
|
||||
sudo service php7.0-fpm reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
|
|
|
@ -122,6 +122,6 @@ else
|
|||
fi
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service php5-fpm reload
|
||||
sudo service php7.0-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
Loading…
Add table
Reference in a new issue