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
|
cd $AUR_CODE_DIR
|
||||||
git clone https://aur.archlinux.org/adcli.git
|
git clone https://aur.archlinux.org/adcli.git
|
||||||
cd adcli
|
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
|
git clean -dfx
|
||||||
|
|
||||||
# Installiere realmd
|
# Installiere realmd
|
||||||
cd $AUR_CODE_DIR
|
cd $AUR_CODE_DIR
|
||||||
git clone https://aur.archlinux.org/realmd.git
|
git clone https://aur.archlinux.org/realmd.git
|
||||||
cd realmd
|
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
|
git clean -dfx
|
||||||
|
|
||||||
cd $CURRENT_DIR
|
cd $CURRENT_DIR
|
||||||
@ -47,7 +47,7 @@ NetBios=$(echo "$DOMAIN" | cut -d '.' -f1)
|
|||||||
coms=$(echo "$DOMAIN" | cut -d '.' -f2)
|
coms=$(echo "$DOMAIN" | cut -d '.' -f2)
|
||||||
|
|
||||||
# Realm joinen
|
# 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
|
# SSSD aktivieren und starten
|
||||||
sudo systemctl enable sssd
|
sudo systemctl enable sssd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user