Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
585826bc5f |
2
Makefile
2
Makefile
@@ -15,7 +15,7 @@ BRIEF = Shadow password utilities
|
||||
DESC = This package includes the programs necessary to convert traditional \
|
||||
V7 UNIX password files to the SVR4 shadow password format and additional \
|
||||
tools to work with shadow passwords.
|
||||
SNAPVER = 8
|
||||
SNAPVER = 9
|
||||
|
||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||
|
||||
30
SNAP/usher
30
SNAP/usher
@@ -7,6 +7,21 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/login.defs ]; then
|
||||
cp ${TARGET}/usr/share/shadow/login.defs ${TARGET}/etc/login.defs
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/login.access ]; then
|
||||
cp ${TARGET}/usr/share/shadow/login.access \
|
||||
${TARGET}/etc/login.access
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/limits ]; then
|
||||
cp ${TARGET}/usr/share/shadow/limits ${TARGET}/etc/limits
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/default/useradd ]; then
|
||||
cp ${TARGET}/usr/share/shadow/useradd.default \
|
||||
${TARGET}/etc/default/useradd
|
||||
fi
|
||||
|
||||
if [[ ${TARGET} ]]; then
|
||||
if [ ! -f ${TARGET}/etc/shadow ]; then
|
||||
echo "Converting /etc/passwd to shadow for ${TARGET}"
|
||||
@@ -28,21 +43,6 @@ case $1 in
|
||||
grpconv
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f ${TARGET}/etc/login.defs ]; then
|
||||
cp ${TARGET}/usr/share/shadow/login.defs ${TARGET}/etc/default/login.defs
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/login.access ]; then
|
||||
cp ${TARGET}/usr/share/shadow/login.access \
|
||||
${TARGET}/etc/default/login.access
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/limits ]; then
|
||||
cp ${TARGET}/usr/share/shadow/limits ${TARGET}/etc/limits
|
||||
fi
|
||||
if [ ! -f ${TARGET}/etc/default/useradd ]; then
|
||||
cp ${TARGET}/usr/share/shadow/useradd.default \
|
||||
${TARGET}/etc/default/useradd
|
||||
fi
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user