Hostname mit Praefix espo- statt crm-
Einheitlich zum Rest des Vorhabens: /srv/espo, espo-deploy, espo-fleet-ops, ESPO-xx, espo_*-Felder. Das Praefix nennt ausserdem das Produkt statt einer Kategorie - 'crm' steht ohnehin schon im FQDN. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
df6c3c530d
commit
f4d53a68d8
@ -16,7 +16,7 @@ FEHLER=0
|
||||
# 1. Hostname aus dem Kundenkuerzel ableiten (klein, nur a-z 0-9 und Bindestrich), damit die
|
||||
# Flotte im RMM und in Logs eindeutig benannt ist.
|
||||
KUERZEL=$(printf '%s' "$KUERZEL_ROH" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9' '-' | sed 's/-\+/-/g; s/^-//; s/-$//')
|
||||
SOLL="crm-${KUERZEL}"
|
||||
SOLL="espo-${KUERZEL}"
|
||||
IST=$(hostnamectl --static)
|
||||
if [ -z "$KUERZEL" ]; then
|
||||
echo "FEHLER: Kundenkuerzel leer - ist die Company Unique Id im RMM gesetzt?"; FEHLER=1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user