cpu=`uname -p`
if [ $cpu == x86_64 ] ; then
ARCH=x86_64 appimagetool citadel.AppDir/
+ md5sum Citadel-x86_64.AppImage | awk ' { print $1 } ' >Citadel-x86_64.AppImage.md5
else
ARCH=ARM appimagetool citadel.AppDir/
+ md5sum Citadel-armhf.AppImage | awk ' { print $1 } ' >Citadel-armhf.AppImage.md5
fi
#include <signal.h>
#include <string.h>
#include <limits.h>
+#include <sys/types.h>
+#include <sys/stat.h>
void main_loop(void);
void run_in_foreground(void);
static char *usage =
"ctdlvisor: usage: ctdlvisor [-h data_directory] [-p http_port] [-s https_port] command\n"
- " 'command' must be one of: run, install, start, stop\n"
+ " 'command' must be one of:\n"
+ " run - start Citadel services in the foreground without detaching\n"
+ " install - deploy systemd unit files for automatic startup at boot\n"
+ " upgrade - check for new version of the software\n"
+ " test - check this appimage for compatibility with your system\n"
;
int main(int argc, char **argv) {
if (!strcasecmp(argv[optind], "run")) {
run_in_foreground();
}
+ else if (!strcasecmp(argv[optind], "install")) {
+ fprintf(stderr, "oops, this is not implemented yet\n");
+ }
+ else if (!strcasecmp(argv[optind], "upgrade")) {
+ fprintf(stderr, "oops, this is not implemented yet\n");
+ }
+ else if (!strcasecmp(argv[optind], "test")) {
+ fprintf(stderr, "oops, this is not implemented yet\n");
+ }
else {
fprintf(stderr, "%s", usage);
exit(1);