]> code.citadel.org Git - citadel.git/blobdiff - citadel/database_cleanup.sh
This is an omnibus commit which moves the Citadel Server from crusty old GNU Autotool...
[citadel.git] / citadel / database_cleanup.sh
index 2c8f5804c16f23c8718f7c1f019e2ccfda06f4a0..765494679f86088130f29260bd0e65210d847710 100755 (executable)
@@ -38,20 +38,20 @@ done
 
 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