Browse Source

./unrealircd hot-patch: now that we have rehash output and status codes

in 6.0.2+ we can inform the user whether the rehash actually succeeded
or not. This was already shown in the output, but we now also change
the last few lines of output to make very clear if the rehash failed
that the currently running UnrealIRCd is not patched.
pull/41/head
Bram Matthys 5 months ago
parent
commit
fa15ea2567
No known key found for this signature in database
GPG Key ID: BF8116B163EAAE98
  1. 11
      unrealircd.in

11
unrealircd.in

@ -259,8 +259,15 @@ elif [ "$1" = "hot-patch" -o "$1" = "cold-patch" ] ; then
cd @SCRIPTDIR@
if [ "$1" = "hot-patch" ]; then
echo "Patch applied successfully and installed. Rehashing your IRCd..."
./unrealircd rehash
echo "Done! All should be good now."
if ./unrealircd rehash; then
echo "Patch installed and server rehashed correctly. All should be good now!"
else
echo "Patching the source code and recompiling succeeded,"
echo "however rehashing the current UnrealIRCd process FAILED"
echo "so it is NOT running the patched code yet."
echo "IMPORTANT: Check error output above!"
exit 1
fi
else
echo "Patch applied successfully. You must now restart your IRC server."
fi

Loading…
Cancel
Save