=================================================================== RCS file: /cvs2/dgamelaunch-openbsd/dgl-create-chroot,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- dgamelaunch-openbsd/dgl-create-chroot 2021/04/02 09:59:19 1.6 +++ dgamelaunch-openbsd/dgl-create-chroot 2021/04/02 10:11:01 1.7 @@ -30,6 +30,9 @@ SQLITE_DBFILE="/dgldir/dgamelaunch.db" # only define this is dgl was configured without --enable-sqlite #PASSWD_FILE="/dgldir/dgl-login" +# only define this is dgl was configured without --enable-debugfile +#DEBUGFILE="/dgldebug.log" + # END OF CONFIG ############################################################################## @@ -120,7 +123,15 @@ fi if [ -n "PASSWD_FILE" ]; then echo "Creating password file at $PASSWD_FILE" touch "$CHROOT/$PASSWD_FILE" + chown "$USRGRP" "$CHROOT/$PASSWD_FILE" chmod 0700 "$CHROOT/$PASSWD_FILE" +fi + +if [ -n "DEBUGFILE" ]; then + echo "Creating debugfile at $DEBUGFILE" + touch "$CHROOT/$DEBUGFILE" + chown "$USRGRP" "$CHROOT/$DEBUGFILE" + chmod 0700 "$CHROOT/$DEBUGFILE" fi if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then