Feat: Fügt Fehlerbehandlung ein.
This commit is contained in:
parent
0f128ba569
commit
34794cd17e
@ -20,14 +20,14 @@ sudo chmod -R 777 $AUR_CODE_DIR
|
||||
cd $AUR_CODE_DIR
|
||||
git clone https://aur.archlinux.org/adcli.git
|
||||
cd adcli
|
||||
makepkg -sic --noconfirm || { echo "Fehler beim Erstellen von adcli"; exit 1; }
|
||||
makepkg -sic --noconfirm || { echo "❌ Fehler beim Erstellen von adcli"; exit 1; }
|
||||
git clean -dfx
|
||||
|
||||
# Installiere realmd
|
||||
cd $AUR_CODE_DIR
|
||||
git clone https://aur.archlinux.org/realmd.git
|
||||
cd realmd
|
||||
makepkg -sic --noconfirm || { echo "Fehler beim Erstellen von realmd"; exit 1; }
|
||||
makepkg -sic --noconfirm || { echo "❌ Fehler beim Erstellen von realmd"; exit 1; }
|
||||
git clean -dfx
|
||||
|
||||
cd $CURRENT_DIR
|
||||
@ -47,7 +47,7 @@ NetBios=$(echo "$DOMAIN" | cut -d '.' -f1)
|
||||
coms=$(echo "$DOMAIN" | cut -d '.' -f2)
|
||||
|
||||
# Realm joinen
|
||||
sudo realm join --verbose --user="$ADMIN" "$DOMAIN" --install=/ || { echo "Fehler beim Domainjoin"; exit 1; }
|
||||
sudo realm join --verbose --user="$ADMIN" "$DOMAIN" --install=/ || { echo "❌ Fehler beim Domainjoin"; exit 1; }
|
||||
|
||||
# SSSD aktivieren und starten
|
||||
sudo systemctl enable sssd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user