remove libz from excludelist
[citadel.git] / appimage / citadel.AppDir / AppRun
index 9c17f828df78596957e39a71eee2d99dc4590118..70f00b9202c73325faeec58aa2413f57bc0c1ed2 100755 (executable)
@@ -203,7 +203,7 @@ 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.
@@ -214,11 +214,15 @@ case ${1} in
                done
                ;;
        debug)
-               echo Connecting to the debugger
-               echo Try this: run -x9 -h $CTDL_DIR
                export LD_LIBRARY_PATH=$APPDIR/usr/lib
                export PATH=$APPDIR/usr/bin:$PATH
-               exec $APPDIR/usr/bin/gdb $APPDIR/usr/local/citadel/citserver
+               exec $APPDIR/usr/local/citadel/citserver -x9 -h $CTDL_DIR
+               ;;
+       connect)
+               export LD_LIBRARY_PATH=$APPDIR/usr/lib
+               export PATH=$APPDIR/usr/bin:$PATH
+               cd $APPDIR
+               exec citadel $*
                ;;
        *)
                echo Unexpected command: ${1}