mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
add configuration nginx to enable redirection on urls and a condition in package dependencies for debian versions if or not buster
This commit is contained in:
parent
2a3e96d634
commit
d6f4e2f293
2 changed files with 6 additions and 3 deletions
|
@ -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(/|$) {
|
||||
|
|
|
@ -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 =============
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue