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'
+ echo 'command must be one of: run, test, install, database_cleanup, migrate'
exit 2
}
export PATH=$APPDIR/usr/bin:$PATH
exec $APPDIR/usr/local/citadel/database_cleanup.sh -h $CTDL_DIR
;;
+ migrate)
+ export APPDIR CTDL_DIR HTTP_PORT HTTPS_PORT
+ export LD_LIBRARY_PATH=$APPDIR/usr/lib
+ export PATH=$APPDIR/usr/bin
+ 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
+ ;;
+ connect)
+ export LD_LIBRARY_PATH=$APPDIR/usr/lib
+ export PATH=$APPDIR/usr/bin:$PATH
+ cd $APPDIR
+ exec citadel $*
+ ;;
*)
echo Unexpected command: ${1}
usage