]> git.plutz.net Git - blast/commitdiff
force update of nis configuration
authorPaul Hänsch <paul@plutz.net>
Mon, 23 Sep 2019 10:21:14 +0000 (12:21 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 23 Sep 2019 10:21:14 +0000 (12:21 +0200)
modules/smb_nis.mk

index a940d1de0737ed42dedefcb570cf9ce644b05fe2..b3516989d07f588b668c6254d05d306cf9870229 100644 (file)
@@ -14,6 +14,7 @@ export smb_nis_pamscript smb_nis_pammount
 define smb_nis_pamscript :=
 #!/bin/sh
 
+# forced through bash, to hide euid from smbpasswd
 /bin/bash -c '
   printf "%s\n" "$$PAM_OLDAUTHTOK" "$$PAM_AUTHTOK" "$$PAM_AUTHTOK" \
   | smbpasswd -sr ${nis_server} -U "$$PAM_USER"
@@ -46,16 +47,16 @@ _smb_nis: ${CFGROOT}
        printf '\nsession       optional        pam_mount.so\n' >>$${CFGROOT}/etc/pam.d/common-session
        printf '\npassword      required        pam_script.so dir=/opt/pam_script\n'  >$${CFGROOT}/etc/pam.d/common-password
 
-${CFGROOT}/opt/pam_script/pam_script_passwd: ${CFGROOT}
+${CFGROOT}/opt/pam_script/pam_script_passwd: ${CFGROOT} .FORCE
        mkdir -p "$(dir $@)"
        printf '%s' "$${smb_nis_pamscript}" >"$@"
 
-${CFGROOT}/etc/security/pam_mount.conf.xml: ${CFGROOT}
+${CFGROOT}/etc/security/pam_mount.conf.xml: ${CFGROOT} .FORCE
        mkdir -p "$(dir $@)"
        printf '%s' "$${smb_nis_pammount}" >"$@"
 
-${CFGROOT}/etc/yp.conf: ${CFGROOT}
+${CFGROOT}/etc/yp.conf: ${CFGROOT} .FORCE
        printf 'ypserver        %s\n' "${nis_server}" >"$@"
 
-${CFGROOT}/etc/defaultdomain: ${CFGROOT}
+${CFGROOT}/etc/defaultdomain: ${CFGROOT} .FORCE
        printf '.%s\n' "${nis_server}" >"$@"