aboutsummaryrefslogtreecommitdiff
path: root/src/usr/sbin/freeipa-helper-post-install
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-23 17:01:45 -0400
committerB Stack <bgstack15@gmail.com>2020-03-23 17:01:45 -0400
commita3e27219edd1c77fe9831d4eac1d7310f8afdd06 (patch)
treebf30a9449a3ee3afbc6fc46c860591a64907ac8d /src/usr/sbin/freeipa-helper-post-install
parentadd debian/ (diff)
downloadfreeipa-helper-a3e27219edd1c77fe9831d4eac1d7310f8afdd06.tar.gz
freeipa-helper-a3e27219edd1c77fe9831d4eac1d7310f8afdd06.tar.bz2
freeipa-helper-a3e27219edd1c77fe9831d4eac1d7310f8afdd06.zip
fix sssd.conf and improve packaging
fix #1 post-install needs to chmod 0600 sssd.conf add sssd.conf.in template add make-dsc-for-obs script bump version to 0.0.2
Diffstat (limited to 'src/usr/sbin/freeipa-helper-post-install')
-rwxr-xr-xsrc/usr/sbin/freeipa-helper-post-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/sbin/freeipa-helper-post-install b/src/usr/sbin/freeipa-helper-post-install
index e9b61b2..8baa604 100755
--- a/src/usr/sbin/freeipa-helper-post-install
+++ b/src/usr/sbin/freeipa-helper-post-install
@@ -7,10 +7,12 @@
# Purpose: Turn my configs into a one-liner
# History:
# 2020-03-11 contents ripped entirely from devuan.txt
+# 2020-03-23 add sssd.conf templating
# Usage:
# sudo freeipa-helper-post-install
# References:
# /mnt/public/Support/Platforms/devuan/devuan.txt
+# almost-bashism for templating from file https://stackoverflow.com/questions/2914220/bash-templating-how-to-build-configuration-files-from-templates-with-bash/60820800#60820800
# Improve:
# Dependencies:
# raw: /usr/share/bgconf/confs/kerberos/kerberos.sh
@@ -22,5 +24,10 @@ tf=/etc/pam.d/common-session ; ! grep -q 'mkhomedir' "${tf}" && { thisline="$((
# set dns_canonicalize_hostname = true
sudo updateval -a /etc/krb5.conf -s '[libdefaults]' '^(\s*dns_canonicalize_hostname\s*=\s*).*' ' dns_canonicalize_hostname = true'
test -e /usr/share/bgconf/confs/kerberos/kerberos.sh && sudo sh /usr/share/bgconf/confs/kerberos/kerberos.sh
+eval "cat <<EOF >/etc/sssd/sssd.conf
+$( cat /usr/share/freeipa-helper/sssd.conf.in )
+EOF
+"
+chmod 0600 /etc/sssd/sssd.conf
service sssd stop ; service sssd start
service ssh stop ; service ssh start
bgstack15