Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > df18bcdeedda1f7a9c3c6b50e5695936 > scriptlet

pam-1.1.8-7.1.mga4.x86_64.rpm

POSTTRANS

/bin/sh
/usr/bin/systemd-tmpfiles --create pam.conf 
# (cg) Ensure that the pam_systemd.so is included for user ACLs under systemd
# Note: Only affects upgrades, but does no harm so always update if needed.
if ! grep -q "pam_systemd\.so" /etc/pam.d/system-auth; then
  echo "-session    optional      pam_systemd.so" >>/etc/pam.d/system-auth
fi

if [ ! -a /var/log/tallylog ] ; then
       install -m 600 /dev/null /var/log/tallylog
fi
if [ -f /etc/login.defs ] && ! grep -q USE_TCB /etc/login.defs; then
       /usr/sbin/set_tcb --auto --migrate
fi