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)
|
# Example PHP configuration (remove if not used)
|
||||||
index index.php /_route.php;
|
index index.php index.html;
|
||||||
try_files $uri $uri/ /_route.php;
|
try_files $uri $uri/ /_route.php;
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
|
|
|
@ -4,8 +4,11 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
|
if [ "$lsb_release --codename --short" = "buster"]; then
|
||||||
pkg_dependencies="php-sqlite3"
|
pkg_dependencies="php7.3-sqlite3"
|
||||||
|
else [ "$lsb_release --codename --short" = "stretch"]; then
|
||||||
|
pkg_dependencies="php7.0-sqlite3"
|
||||||
|
fi
|
||||||
|
|
||||||
# ============= FUTURE YUNOHOST HELPER =============
|
# ============= FUTURE YUNOHOST HELPER =============
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue