This is a testing script intended for developers. The last thing
we need is for some dumbass to run it without knowing what it does,
and then come to us complaining that it deleted their database.
+
+# This script dumps the database, deletes the database, loads the database, dumps it again...
+# ...and then compares the two dumps to see if we have full fidelity between them.
+#
+# Did you read that correctly? Yes, it will DELETE your database. So don't run this.
+
+exit 0 # In fact, here's an exit statement you must delete before you can even run it.
+
ps ax | grep citserver | grep -v grep >/dev/null 2>/dev/null && {
echo dont do this while the server is running
exit 1
ps ax | grep citserver | grep -v grep >/dev/null 2>/dev/null && {
echo dont do this while the server is running
exit 1
// This is a test utility for the backend API. It simply opens and closes the databases.
// There is no need for end users to ever run this program. So don't. And don't ask.
//
// This is a test utility for the backend API. It simply opens and closes the databases.
// There is no need for end users to ever run this program. So don't. And don't ask.
//
-// Copyright (c) 2024 by Art Cancro citadel.org
+// Copyright (c) 2023-2024 by Art Cancro citadel.org
//
// This program is open source software. Use, duplication, or disclosure
// is subject to the terms of the GNU General Public License, version 3.
//
// This program is open source software. Use, duplication, or disclosure
// is subject to the terms of the GNU General Public License, version 3.