summaryrefslogtreecommitdiff
path: root/share/hooks/lxc/1020-cron.hook.chroot
blob: 3f8d6976a6ba1118606d27147f16150330292af6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

set -e

# Disabling loginuid (requires read-write proc filesystem)
if grep -E -qs "^ *session *required *pam_loginuid.so" /etc/pam.d/cron
then
	sed -i -e 's|^.*\(session.*required.*pam_loginuid.so\)$|#\1|' /etc/pam.d/cron
fi