DATA_DIR=$DATA_DIR/data
-# If we're on an AppDir system, use the embedded db_tools.
-if [ "${APPDIR}" != "" ] ; then
- export PATH=${APPDIR}/usr/bin:$PATH
- RECOVER=${APPDIR}/usr/bin/db_recover
- DUMP=${APPDIR}/usr/bin/db_dump
- LOAD=${APPDIR}/usr/bin/db_load
-
-# If we're on an Easy Install system, use our own db_ tools.
-elif [ -x /usr/local/ctdlsupport/bin/db_dump ] ; then
+# If we're on a Docker or Easy Install system, use our own db_ tools.
+if [ -x /usr/local/ctdlsupport/bin/db_dump ] ; then
export PATH=/usr/local/ctdlsupport/bin:$PATH
RECOVER=/usr/local/ctdlsupport/bin/db_recover
DUMP=/usr/local/ctdlsupport/bin/db_dump
LOAD=/usr/local/ctdlsupport/bin/db_load
+# otherwise look in /usr/local
+elif [ -x /usr/local/bin/db_dump ] ; then
+ export PATH=/usr/local/bin:$PATH
+ RECOVER=/usr/local/bin/db_recover
+ DUMP=/usr/local/bin/db_dump
+ LOAD=/usr/local/bin/db_load
+
# usual install
else
if test -f /usr/bin/db_dump; then
tool only if that one fails to fix your problem.
WARNING #4:
- You must have an amount of free space on your disk that is at least twice
- the size of your database, see the following output:
- (for substantially better performance you should specify a location that is
- on another disk than $DATA_DIR)
+ You must have an amount of free space in /tmp that is at least twice
+ the size of your database. see the following output:
`df -h`