frappe_docker/installation/kubernetes/resources/create-new-site-ingress.sh
Revant Nandgaonkar 2162c63a48 feat: kubernetes installation
helm chart for erpnext
job resources to create, backup, migrate sites
2020-03-07 22:35:02 +05:30

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