2022-02-28 23:39:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2024-03-22 19:57:45 +01:00
|
|
|
_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
|
2024-03-22 19:57:45 +01:00
|
|
|
if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 1 ]; then
|
2024-03-22 22:21:58 +01:00
|
|
|
echo 'rewrite ^/$ /catalog/;' >> "../conf/nginx.conf"
|
2024-03-22 19:57:45 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2022-02-28 23:39:48 +01:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|