[BACK]Return to dgl-create-chroot CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Diff for /dgamelaunch-openbsd/dgl-create-chroot between version 1.4 and 1.6

version 1.4, 2021/03/16 10:00:11 version 1.6, 2021/04/02 09:59:19
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"
   
 # END OF CONFIG  # END OF CONFIG
 ##############################################################################  ##############################################################################
   
Line 110  if [ -n "$SQLITE_DBFILE" ]; then
Line 113  if [ -n "$SQLITE_DBFILE" ]; then
       SQLITE_DBFILE="`echo ${SQLITE_DBFILE#/}`"        SQLITE_DBFILE="`echo ${SQLITE_DBFILE#/}`"
       sqlite3 "$CHROOT/$SQLITE_DBFILE" "create table dglusers (id integer primary key, username text, email text, env text, password text, flags integer);"        sqlite3 "$CHROOT/$SQLITE_DBFILE" "create table dglusers (id integer primary key, username text, email text, env text, password text, flags integer);"
       chown "$USRGRP" "$CHROOT/$SQLITE_DBFILE"        chown "$USRGRP" "$CHROOT/$SQLITE_DBFILE"
         chmod 0700 "$CHROOT/$SQLITE_DBFILE"
   fi    fi
 fi  fi
   
   if [ -n "PASSWD_FILE" ]; then
         echo "Creating password file at $PASSWD_FILE"
         touch "$CHROOT/$PASSWD_FILE"
         chmod 0700 "$CHROOT/$PASSWD_FILE"
   fi
   
 if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then  if [ -n "$COMPRESSBIN" -a -e "`which $COMPRESSBIN`" ]; then
   COMPRESSDIR="`dirname $COMPRESSBIN`"    COMPRESSDIR="`dirname $COMPRESSBIN`"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

CVSweb