bug in sysbk for FreeBSD

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
I found a bug on sysbk for FreeBSD
custom.files include
/etc/shadow

but FreeBSD uses /etc/master.passwd for shadows
 
I belive /var/spool/mail and /var/spool/cron should be changed to /var/mail and /var/cron
 
Hello,

Thanks.

I've updated the sysbk.sh script. I added this after the extraction:
Code:
#swap out linux files for freebsd file:
if [ "$OS" = "FreeBSD" ]; then

        FILES=$DIR/$NAME/mod/custom.files
        perl -pi -e 's#/etc/shadow#/etc/master.passwd#' $FILES

        DIRS=$DIR/$NAME/mod/custom.dirs
        perl -pi -e 's#/var/spool/mail#/var/mail#' $DIRS
        perl -pi -e 's#/var/spool/cron#/var/cron#' $DIRS
fi
John
 
Back
Top