From d6f4e2f2937c9d24b9865f269741696f9dbc036d Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sun, 27 Sep 2020 23:02:11 +0200 Subject: [PATCH] add configuration nginx to enable redirection on urls and a condition in package dependencies for debian versions if or not buster --- conf/nginx.conf | 2 +- scripts/_common.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 84bd542..7b3376b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,7 +21,7 @@ if ($scheme = http) { # Example PHP configuration (remove if not used) - index index.php /_route.php; + index index.php index.html; try_files $uri $uri/ /_route.php; location ~ [^/]\.php(/|$) { diff --git a/scripts/_common.sh b/scripts/_common.sh index 36d6e2b..c4ff904 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,8 +4,11 @@ # COMMON VARIABLES #================================================= # dependencies used by the app - -pkg_dependencies="php-sqlite3" +if [ "$lsb_release --codename --short" = "buster"]; then + pkg_dependencies="php7.3-sqlite3" +else [ "$lsb_release --codename --short" = "stretch"]; then + pkg_dependencies="php7.0-sqlite3" +fi # ============= FUTURE YUNOHOST HELPER =============