From 9be37ad02c08ccedc2346e5ebf97e00e1eeb34de Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 3 Jan 2024 13:41:16 -0500 Subject: [PATCH] dumploadtest.sh: added an exit 0 to the top of the script. 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 | 8 ++++++++ citadel/utils/dbnothing.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/citadel/dumploadtest.sh b/citadel/dumploadtest.sh index 4af546ff6..7179f3991 100755 --- a/citadel/dumploadtest.sh +++ b/citadel/dumploadtest.sh @@ -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 diff --git a/citadel/utils/dbnothing.c b/citadel/utils/dbnothing.c index f76b81d48..b2fd3d2fa 100644 --- a/citadel/utils/dbnothing.c +++ b/citadel/utils/dbnothing.c @@ -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. -- 2.30.2