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

Fix nginx

This commit is contained in:
Salamandar 2024-03-22 22:21:58 +01:00
parent bd25ce75c5
commit 792be98ab0
3 changed files with 4 additions and 3 deletions

View file

@ -9,8 +9,9 @@
#================================================= #=================================================
_ci_fix_nginx() { _ci_fix_nginx() {
# Ofbiz returns a 404 on its root, so let's redirect to another path also served
if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 1 ]; then if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 1 ]; then
echo 'rewrite ^/$ /catalog/;' >> "/etc/nginx/conf.d/${domain}.d/$app.conf" echo 'rewrite ^/$ /catalog/;' >> "../conf/nginx.conf"
fi fi
} }

View file

@ -67,8 +67,8 @@ popd
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config
_ci_fix_nginx _ci_fix_nginx
ynh_add_nginx_config
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config

View file

@ -69,8 +69,8 @@ ynh_add_config --template="build.gradle" --destination="$install_dir/build.gradl
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config
_ci_fix_nginx _ci_fix_nginx
ynh_add_nginx_config
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config