summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-10-29 14:32:47 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-10-29 14:32:47 +0100
commit940b1c7f5112cf2690568928ad7d0133c53d2981 (patch)
tree901ffccd76bfd02e2e05bd7513a423b4c26b896c /server/bin/setserveraddr
parent5cef356b05683cad3313e1568741db183b0754a3 (diff)
#816 856: Scripts `setserveraddr` and etclientmode` use common Shell function file.
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)