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

25 lines
736 B
Bash
Raw Normal View History

2022-02-28 23:39:48 +01:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
_ci_fix_nginx() {
2024-03-22 22:21:58 +01:00
# Ofbiz returns a 404 on its root, so let's redirect to another path also served
if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 1 ]; then
2024-03-22 22:21:58 +01:00
echo 'rewrite ^/$ /catalog/;' >> "../conf/nginx.conf"
fi
}
2022-02-28 23:39:48 +01:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================