diff options
-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; |