Update adm.sh

reloaded script
This commit is contained in:
snippetsx 2026-06-03 14:10:35 +03:00
parent 04228bea32
commit 32597eaf97

4
adm.sh
View File

@ -1,7 +1,7 @@
#!/bin/bash
pcname=""
onContinue=true
while $onContinue; do
while [ "$onContinue" = "true" ]; do
read -p "Введите номер пк: A-PC-KC-" pcname
pcname="A-PC-KC-$pcname"
if [[ $pcname =~ ^A-PC-KC-[0-9]{2}$ ]]; then
@ -16,4 +16,4 @@ while $onContinue; do
done
fi
done
su -c "apt-get update && apt-get install task-auth-ad-sssd -y && system-auth write ad mtuci.adm $pcname MTUCI 'vvod' ':TcyMH@DEy4tE6xls4>S@GQJbM_SwX'"
su -c "apt-get update && apt-get install task-auth-ad-sssd -y && system-auth write ad mtuci.adm $pcname MTUCI 'vvod' ':TcyMH@DEy4tE6xls4>S@GQJbM_SwX'" || exit 1