mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-25 08:55:08 +00:00
25 lines
521 B
Bash
Executable file
25 lines
521 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ -z "$INGRESS_NAME" ]]; then
|
|
echo "INGRESS_NAME is not set"
|
|
exit 1
|
|
fi
|
|
if [[ -z "$ERPNEXT_SERVICE" ]]; then
|
|
echo "ERPNEXT_SERVICE is not set"
|
|
exit 1
|
|
fi
|
|
if [[ -z "$SITE_NAME" ]]; then
|
|
echo "SITE_NAME is not set"
|
|
exit 1
|
|
fi
|
|
if [[ -z "$TLS_SECRET_NAME" ]]; then
|
|
echo "TLS_SECRET_NAME is not set"
|
|
exit 1
|
|
fi
|
|
|
|
envsubst '${INGRESS_NAME}
|
|
${ERPNEXT_SERVICE}
|
|
${SITE_NAME}
|
|
${TLS_SECRET_NAME}' \
|
|
< ./newsiteingress.yaml.template > newsiteingress_$SITE_NAME.yaml
|