23a9ff7e9b
between this package and the net/samba package.
21 lines
486 B
Text
21 lines
486 B
Text
#!/bin/sh
|
|
#
|
|
# $NetBSD: INSTALL,v 1.2 2001/11/21 17:17:44 jlam Exp $
|
|
|
|
SAMBA_PRIVATE="@SAMBA_PRIVATE@"
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
# Create SMB password file
|
|
if [ ! -e ${SAMBA_PRIVATE}/smbpasswd ]
|
|
then
|
|
${ECHO} -n "Creating ${SAMBA_PRIVATE}/smbpasswd..."
|
|
${CHOWN} -R 0:0 ${SAMBA_PRIVATE}
|
|
${CAT} /etc/passwd | ${PKG_PREFIX}/sbin/mksmbpasswd \
|
|
> ${SAMBA_PRIVATE}/smbpasswd
|
|
${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd
|
|
${CHMOD} 500 ${SAMBA_PRIVATE}
|
|
echo "done."
|
|
fi
|
|
;;
|
|
esac
|