diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-10-29 14:32:47 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-10-29 14:32:47 +0100 |
commit | 940b1c7f5112cf2690568928ad7d0133c53d2981 (patch) | |
tree | 901ffccd76bfd02e2e05bd7513a423b4c26b896c /server/bin/setserveraddr | |
parent | 5cef356b05683cad3313e1568741db183b0754a3 (diff) |
#816 856: Scripts `setserveraddr` and etclientmode` use common Shell function file.
Diffstat (limited to 'server/bin/setserveraddr')
-rwxr-xr-x | server/bin/setserveraddr | 5 |
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) |