Update adm.sh
reloaded script
This commit is contained in:
parent
04228bea32
commit
32597eaf97
4
adm.sh
4
adm.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pcname=""
|
pcname=""
|
||||||
onContinue=true
|
onContinue=true
|
||||||
while $onContinue; do
|
while [ "$onContinue" = "true" ]; do
|
||||||
read -p "Введите номер пк: A-PC-KC-" pcname
|
read -p "Введите номер пк: A-PC-KC-" pcname
|
||||||
pcname="A-PC-KC-$pcname"
|
pcname="A-PC-KC-$pcname"
|
||||||
if [[ $pcname =~ ^A-PC-KC-[0-9]{2}$ ]]; then
|
if [[ $pcname =~ ^A-PC-KC-[0-9]{2}$ ]]; then
|
||||||
@ -16,4 +16,4 @@ while $onContinue; do
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
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
|
||||||
Loading…
Reference in New Issue
Block a user