Files
binary-repo/sys/apps/shadow/shadow.sysconf
T
2023-03-16 08:52:03 +00:00

13 lines
309 B
Bash

#!/bin/sh
if [ ! -f /var/lib/ymp/sysconf/shadow/postinstall.done ] ; then
touch /etc/group
date > /var/lib/ymp/sysconf/shadow/postinstall.done
fi
if [ ! -f /etc/shadow ] ; then
echo "root:*::0:::::" > /etc/shadow
chmod 600 /etc/shadow
chown root /etc/shadow
chgrp root /etc/shadow
fi