dumploadtest.sh: added an exit 0 to the top of the script.
authorArt Cancro <ajc@citadel.org>
Wed, 3 Jan 2024 18:41:16 +0000 (13:41 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 3 Jan 2024 18:41:16 +0000 (13:41 -0500)
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.

citadel/dumploadtest.sh
citadel/utils/dbnothing.c

index 4af546ff66a9c0db6e4a5f0aa746d147fbee7529..7179f399180e853ec0f8a55db8c27197b979139c 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+
+# 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
index f76b81d484e1dc752df60d74b8abffa1e31b61bc..b2fd3d2fa03749fa4ff4ca6395e5e6e0dcf00e3a 100644 (file)
@@ -1,7 +1,7 @@
 // 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.