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:
parent
bd25ce75c5
commit
792be98ab0
3 changed files with 4 additions and 3 deletions
|
@ -9,8 +9,9 @@
|
|||
#=================================================
|
||||
|
||||
_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
|
||||
echo 'rewrite ^/$ /catalog/;' >> "/etc/nginx/conf.d/${domain}.d/$app.conf"
|
||||
echo 'rewrite ^/$ /catalog/;' >> "../conf/nginx.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -67,8 +67,8 @@ popd
|
|||
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
_ci_fix_nginx
|
||||
ynh_add_nginx_config
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
|
|
@ -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
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
_ci_fix_nginx
|
||||
ynh_add_nginx_config
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
|
Loading…
Reference in a new issue