summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/setserveraddr')
-rwxr-xr-xserver/bin/setserveraddr5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/bin/setserveraddr b/server/bin/setserveraddr
index 4d7538da..fc5efc5d 100755
--- a/server/bin/setserveraddr
+++ b/server/bin/setserveraddr
@@ -52,10 +52,7 @@ done
if [ -n "$SERVERIP" ]; then
# Showing warning to inform that initiated clients may hang.
read -rp "WARNING: initiated clients can hang. Continue? (y/n): " ANSWER
- if [ "${ANSWER,,}" != "y" ]; then
- echo "Operation canceled."
- exit 0
- fi
+ [ "${ANSWER,,}" != "y" ] && raiseError cancel "Do nothing"
# Temporary files.
tmpfile=$(mktemp /tmp/og.XXXXX)
MYCNF=$(mktemp /tmp/.my.cnf.XXXXX)