1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ofbiz_ynh.git synced 2024-09-03 19:46:33 +02:00

Try to workaround crappy 404 on root with a redirect in CI

This commit is contained in:
Salamandar 2024-03-22 19:57:45 +01:00
parent 0d293a8154
commit bd25ce75c5
3 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,12 @@
# PERSONAL HELPERS
#=================================================
_ci_fix_nginx() {
if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 1 ]; then
echo 'rewrite ^/$ /catalog/;' >> "/etc/nginx/conf.d/${domain}.d/$app.conf"
fi
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================

View file

@ -68,6 +68,7 @@ ynh_script_progression --message="Adding system configurations related to $app..
# Create a dedicated NGINX config
ynh_add_nginx_config
_ci_fix_nginx
# Create a dedicated systemd config
ynh_add_systemd_config

View file

@ -70,6 +70,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
# Create a dedicated NGINX config
ynh_add_nginx_config
_ci_fix_nginx
# Create a dedicated systemd config
ynh_add_systemd_config