summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-05 14:05:20 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-08 10:04:18 +0100
commitc853c5742c0c373d06b3c2abf16dac33879a7666 (patch)
treea83eb16a81f0bfbd405a36a9562edeb1d062ae88
parent7f641c86194656b687f2a469dd2b1bb69e8f23e2 (diff)
downloaditzks-systems-c853c5742c0c373d06b3c2abf16dac33879a7666.tar.gz
itzks-systems-c853c5742c0c373d06b3c2abf16dac33879a7666.tar.bz2
itzks-systems-c853c5742c0c373d06b3c2abf16dac33879a7666.zip
share/debian-edu-config/tools/update-dlw-krb5-keytabs-itzk: Fix detection if cmdline host is found in diskless-workstation-hosts NIS netgroup.
-rwxr-xr-xshare/debian-edu-config/tools/update-dlw-krb5-keytabs-itzks5
1 files changed, 2 insertions, 3 deletions
diff --git a/share/debian-edu-config/tools/update-dlw-krb5-keytabs-itzks b/share/debian-edu-config/tools/update-dlw-krb5-keytabs-itzks
index f13e99f..950a67a 100755
--- a/share/debian-edu-config/tools/update-dlw-krb5-keytabs-itzks
+++ b/share/debian-edu-config/tools/update-dlw-krb5-keytabs-itzks
@@ -18,9 +18,8 @@ if [ -z "$1" ]; then
DLW_HOSTS="${DLW_HOSTS_NETGROUP}"
else
while [ -n "${1}" ]; do
- if echo ${DLW_HOSTS_NETGROUP} | grep -q "${1}"; then
- DLW_HOSTS="${DLW_HOSTS} ${1}"
- shift
+ if echo ${DLW_HOSTS_NETGROUP} | grep -q "${1}.${DOMAIN}"; then
+ DLW_HOSTS="${DLW_HOSTS} ${1}.${DOMAIN}"
else
echo "WARNING: Host ${1} not a diskless workstation"
logger -t update-dlw-krb5-keytabs -p warning "Host '${1}' is not a diskless workstation."