diff options
author | B Stack <bgstack15@gmail.com> | 2019-09-30 02:27:17 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-09-30 02:27:17 +0000 |
commit | a9c33ca4f1d42497c53aa926a871bb40875159c0 (patch) | |
tree | a42f6302d44ed27b811aa2e44e0a04b44cebbe84 /oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md | |
parent | Merge branch 'waterfox-bump' into 'master' (diff) | |
parent | add stub dpkg for oddjob-mkhomedir (diff) | |
download | stackrpms-a9c33ca4f1d42497c53aa926a871bb40875159c0.tar.gz stackrpms-a9c33ca4f1d42497c53aa926a871bb40875159c0.tar.bz2 stackrpms-a9c33ca4f1d42497c53aa926a871bb40875159c0.zip |
Merge branch 'oddjob-mkhomedir' into 'master'
add stub dpkg for oddjob-mkhomedir
See merge request bgstack15/stackrpms!92
Diffstat (limited to 'oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md')
-rw-r--r-- | oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md b/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md new file mode 100644 index 0000000..c454a3d --- /dev/null +++ b/oddjob-mkhomedir-0.0.1/README-oddjob-mkhomedir.md @@ -0,0 +1,7 @@ +# Introduction +This oddjob-mkhomedir-0.0.1 directory is a dummy, which is designed to be installed on a Devuan system so you can install freeipa-client. +This is the "source" contents that will be used to build a dpkg from the oddjob-mkhomedir/ directory in this same source tree. + +To actually make home directories upon user first login: + + tf=/etc/pam.d/common-session ; ! grep -q 'mkhomedir' "${tf}" && { thisline="$(( $( grep -nE 'session\s+optional' "${tf}" | head -n1 | awk -F':' '{print $1}' ) - 0 ))" ; awk -v thisline="$thisline" 'NR == (thisline) {print "session optional pam_mkhomedir.so"; } {print;}' "${tf}" > "${tf}.2" ; test -f "${tf}.2" && mv "${tf}.2" "${tf}" ; } |