fixed a bug with ctdlmigrate running in appimage
[citadel.git] / appimage / citadel.AppDir / AppRun
index e498fe4288fad8c21cdc01e2e737185e95723122..373d717003cdfdc6bbd15a03edb2bb4c293df549 100755 (executable)
@@ -203,7 +203,20 @@ case ${1} in
                export APPDIR CTDL_DIR HTTP_PORT HTTPS_PORT
                export LD_LIBRARY_PATH=$APPDIR/usr/lib
                export PATH=$APPDIR/usr/bin
-               exec ctdlvisor -m -h $CTDL_DIR
+               exec ctdlvisor -m
+               ;;
+       mount)
+               echo This mode of operation mounts the AppImage but does not run anything.
+               echo -n Kill it when you are finished...
+               while true
+               do
+                       sleep 1
+               done
+               ;;
+       debug)
+               export LD_LIBRARY_PATH=$APPDIR/usr/lib
+               export PATH=$APPDIR/usr/bin:$PATH
+               exec $APPDIR/usr/local/citadel/citserver -x9 -h $CTDL_DIR
                ;;
        *)
                echo Unexpected command: ${1}