X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=appimage%2Fcitadel.AppDir%2FAppRun;h=5766ff2e55b47514890d7e30547b06e8b58a0d03;hb=a84c6373b7ac54fa2dd25f1fb6a079b3741da2f7;hp=373d717003cdfdc6bbd15a03edb2bb4c293df549;hpb=8779ae0fd227b721c5244857956f578fc4af2149;p=citadel.git diff --git a/appimage/citadel.AppDir/AppRun b/appimage/citadel.AppDir/AppRun index 373d71700..5766ff2e5 100755 --- a/appimage/citadel.AppDir/AppRun +++ b/appimage/citadel.AppDir/AppRun @@ -23,7 +23,7 @@ ulimit -c unlimited usage() { echo ${APPIMAGE}: usage: ${APPIMAGE} '[-h data_directory] [-p http_port] [-s https_port] command' - echo 'command must be one of: run, test, install, database_cleanup, migrate' + echo 'command must be one of: run, test, install, client, database_cleanup, migrate' exit 2 } @@ -194,6 +194,9 @@ case ${1} in install) installation ;; + client) + exec $APPDIR/usr/bin/citadel + ;; database_cleanup) export LD_LIBRARY_PATH=$APPDIR/usr/lib export PATH=$APPDIR/usr/bin:$PATH @@ -218,6 +221,12 @@ case ${1} in export PATH=$APPDIR/usr/bin:$PATH 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} usage