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 =============