Added useradd default file and usher to manage it

This commit is contained in:
2017-05-16 19:54:01 -05:00
parent 83939b7c57
commit 754abdb166
3 changed files with 31 additions and 1 deletions

View File

@@ -24,10 +24,14 @@ case $1 in
fi
if [ ! -f /etc/gshadow ]; then
echo "Converting /etc/group to gshadow for ${TARGET}"
echo "Converting /etc/group to gshadow"
grpconv
fi
fi
if [ ! -f ${TARGET}/etc/default/useradd ]; then
cp ${TARGET}/usr/share/shadow/useradd.default /etc/default/useradd
fi
;;
prerm)
exit 0