version 1.6, 2021/04/02 09:59:19 |
version 1.8, 2021/04/02 10:12:01 |
|
|
#!/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 30 SQLITE_DBFILE="/dgldir/dgamelaunch.db" |
|
Line 30 SQLITE_DBFILE="/dgldir/dgamelaunch.db" |
|
# only define this is dgl was configured without --enable-sqlite |
# only define this is dgl was configured without --enable-sqlite |
#PASSWD_FILE="/dgldir/dgl-login" |
#PASSWD_FILE="/dgldir/dgl-login" |
|
|
|
# only define this is dgl was configured without --enable-debugfile |
|
#DEBUGFILE="/dgldebug.log" |
|
|
# END OF CONFIG |
# END OF CONFIG |
############################################################################## |
############################################################################## |
|
|
|
|
if [ -n "PASSWD_FILE" ]; then |
if [ -n "PASSWD_FILE" ]; then |
echo "Creating password file at $PASSWD_FILE" |
echo "Creating password file at $PASSWD_FILE" |
touch "$CHROOT/$PASSWD_FILE" |
touch "$CHROOT/$PASSWD_FILE" |
|
chown "$USRGRP" "$CHROOT/$PASSWD_FILE" |
chmod 0700 "$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 |
fi |
|
|
if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then |
if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then |