Try to prevent emtpy fqdn setting (#203)

This commit is contained in:
Arjan H
2025-11-08 14:35:42 +01:00
parent 8351b4b365
commit ac119fb82b
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ get_fqdn() {
file_fqdn=$(grep fqdn /opt/labca/data/config.json 2>/dev/null | cut -d ":" -f 2- | tr -d " \",")
fi
if [ "$file_fqdn" == "" ]; then
if [ "$LABCA_FQDN" == "notset" ]; then
if [ "$LABCA_FQDN" == "notset" ] || [ "$LABCA_FQDN" == "" ]; then
echo "ERROR: environment variable LABCA_FQDN is not set!"
exit 1
else

View File

@@ -8,7 +8,7 @@ get_fqdn() {
file_fqdn=$(grep fqdn /opt/labca/data/config.json 2>/dev/null | cut -d ":" -f 2- | tr -d " \",")
fi
if [ "$file_fqdn" == "" ]; then
if [ "$LABCA_FQDN" == "notset" ]; then
if [ "$LABCA_FQDN" == "notset" ] || [ "$LABCA_FQDN" == "" ]; then
echo "ERROR: environment variable LABCA_FQDN is not set!"
exit 1
else