diff options
author | Erich Eckner <git@eckner.net> | 2018-06-21 10:42:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-21 10:42:23 +0200 |
commit | 13e5347fd5b337769dcbd8224758038a88963349 (patch) | |
tree | 0fdcf1b0ec4280350ace887d77f4338767e4295d | |
parent | 43dfc18917539b62092b2e9f163abf3a442849fa (diff) | |
download | releng-13e5347fd5b337769dcbd8224758038a88963349.tar.xz |
replicate-db: "hostname -f" -> "hostname"
-rwxr-xr-x | replicate-db | 6 |
1 files 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; |