Fixed patches, cleaned up Makefile, added dependencies
This commit is contained in:
@@ -9,18 +9,22 @@ case $1 in
|
||||
postinst)
|
||||
if [[ ${TARGET} ]]; then
|
||||
if [ ! -f ${TARGET}/etc/shadow ]; then
|
||||
echo "Converting /etc/passwd to shadow for ${TARGET}"
|
||||
chroot ${TARGET} pwconv
|
||||
fi
|
||||
|
||||
if [ ! -f ${TARGET}/etc/gshadow ]; then
|
||||
echo "Converting /etc/group to gshadow for ${TARGET}"
|
||||
chroot ${TARGET} grpconv
|
||||
fi
|
||||
else
|
||||
if [ ! -f /etc/shadow ]; then
|
||||
echo "Converting /etc/passwd to shadow"
|
||||
pwconv
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/gshadow ]; then
|
||||
echo "Converting /etc/group to gshadow for ${TARGET}"
|
||||
grpconv
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user