version 1.5, 2021/03/31 12:23:08 |
version 1.10, 2021/04/02 12:06:20 |
|
|
#!/bin/sh |
#!/bin/sh |
|
|
# Ideas and some parts from the original dgl-create-chroot (by joshk@triplehelix.org, modifications by jilles@stack.nl) |
# Ideas and some parts from the original dgl-create-chroot (by joshk@triplehelix.org, modifications by jilles@stack.nl) |
# This one by paxed@alt.org |
# This one by paxed@alt.org, modified by porting@use.startmail.com |
|
|
|
|
# |
# |
Line 27 NH_VAR_PLAYGROUND="/nh343/var/" |
|
Line 27 NH_VAR_PLAYGROUND="/nh343/var/" |
|
# only define this if dgl was configured with --enable-sqlite |
# only define this if dgl was configured with --enable-sqlite |
SQLITE_DBFILE="/dgldir/dgamelaunch.db" |
SQLITE_DBFILE="/dgldir/dgamelaunch.db" |
|
|
|
# only define this is dgl was configured without --enable-sqlite |
|
#PASSWD_FILE="/dgldir/dgl-login" |
|
#LOCK_FILE="/dgldir/dgl-lock" |
|
|
|
# only define this is dgl was configured without --enable-debugfile |
|
#DEBUGFILE="/dgldebug.log" |
|
|
# END OF CONFIG |
# END OF CONFIG |
############################################################################## |
############################################################################## |
|
|
Line 114 if [ -n "$SQLITE_DBFILE" ]; then |
|
Line 121 if [ -n "$SQLITE_DBFILE" ]; then |
|
fi |
fi |
fi |
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 "$LOCK_FILE" ]; then |
|
echo "Creating lockfile at $LOCK_FILE" |
|
touch "$CHROOT/$LOCK_FILE" |
|
chown "$USRGRP" "$CHROOT/$LOCK_FILE" |
|
chmod 0700 "$CHROOT/$LOCK_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 |
if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then |
COMPRESSDIR="`dirname $COMPRESSBIN`" |
COMPRESSDIR="`dirname $COMPRESSBIN`" |