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
2024-03-22 22:21:58 +01:00

24 lines
736 B
Bash

#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
_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/;' >> "../conf/nginx.conf"
fi
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================