From 13e5347fd5b337769dcbd8224758038a88963349 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 21 Jun 2018 10:42:23 +0200 Subject: replicate-db: "hostname -f" -> "hostname" --- replicate-db | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/replicate-db b/replicate-db index 264e782..e7699b8 100755 --- a/replicate-db +++ b/replicate-db @@ -46,12 +46,12 @@ printf '%s\n' "${remote_root_pw}" | \ echo "logged in" >&2; mysql buildmaster -u root -p -e "'"$( printf "DROP USER IF EXISTS 'replikat'@'%s';\n" \ - "$(hostname -f)" + "$(hostname)" printf "CREATE USER 'replikat'@'%s' IDENTIFIED BY '%s';\n" \ - "$(hostname -f)" \ + "$(hostname)" \ "${replikat_pw}" printf "GRANT REPLICATION SLAVE ON *.* TO 'replikat'@'%s';\n" \ - "$(hostname -f)" + "$(hostname)" printf 'FLUSH PRIVILEGES;\n' printf 'QUIT\n' )"'" >&2; -- cgit v1.2.3-70-g09d2