passwd.postinst enables shadow passwords for the last 16 years. Add a test
instead.
- echo "Activating shadow passwords."
- shadowconfig on
-
CHPASSWD_OPTION=
if chpasswd --help 2>&1 | grep -q -- '-m,' ; then
CHPASSWD_OPTION='-m'
CHPASSWD_OPTION=
if chpasswd --help 2>&1 | grep -q -- '-m,' ; then
CHPASSWD_OPTION='-m'
process:
sshd:
running: true
process:
sshd:
running: true
file:
/etc/timezone:
exists: true
file:
/etc/timezone:
exists: true
filetype: symlink
exists: true
linked-to: /usr/share/zoneinfo/Europe/Vienna
filetype: symlink
exists: true
linked-to: /usr/share/zoneinfo/Europe/Vienna
+
+ # shadow passwords are enabled.
+ /etc/shadow:
+ exists: true
+ /etc/gshadow:
+ exists: true