summaryrefslogtreecommitdiff
path: root/ansible/scripts
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-12 17:41:30 +0300
committerheqnx <root@heqnx.com>2025-07-12 17:41:30 +0300
commit62acc6423bfead7cee08352dfc92e154eabbb4aa (patch)
treea435a4f996ea7ba28f5bec57baab655aaf114553 /ansible/scripts
parent6e559dd880cf72b23c98d63e53982e4f359747f4 (diff)
downloadansible-active-directory-range-62acc6423bfead7cee08352dfc92e154eabbb4aa.tar.gz
ansible-active-directory-range-62acc6423bfead7cee08352dfc92e154eabbb4aa.zip
fixed linux domain join
Diffstat (limited to 'ansible/scripts')
-rw-r--r--ansible/scripts/join-domain.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/ansible/scripts/join-domain.sh b/ansible/scripts/join-domain.sh
index 24c87b0..7661acd 100644
--- a/ansible/scripts/join-domain.sh
+++ b/ansible/scripts/join-domain.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-[[ $EUID -ne 0 ]] && printf "%s\n" "run as root" && exit 1
+test "${EUID}" -ne 0 && printf "%s\n" "run as root" && exit 1
while getopts "d:n:p:" arg; do
case $arg in
@@ -10,11 +10,11 @@ while getopts "d:n:p:" arg; do
esac
done
-DEBIAN_FRONTEND=noninteractive apt-get update -yqq &>/dev/null
-DEBIAN_FRONTEND=noninteractive apt-get install -yqq realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir packagekit krb5-user &>/dev/null
-DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -yqq &>/dev/null
-DEBIAN_FRONTEND=noninteractive apt-get clean &>/dev/null
-DEBIAN_FRONTEND=noninteractive apt-get autoclean &>/dev/null
+DEBIAN_FRONTEND=noninteractive apt-get update -y
+DEBIAN_FRONTEND=noninteractive apt-get install -y realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir packagekit krb5-user
+DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y
+DEBIAN_FRONTEND=noninteractive apt-get clean
+DEBIAN_FRONTEND=noninteractive apt-get autoclean
if systemctl is-active systemd-resolved; then
systemctl disable --now systemd-resolved --no-pager