Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-21 10:42:23 +0200
committerErich Eckner <git@eckner.net>2018-06-21 10:42:23 +0200
commit13e5347fd5b337769dcbd8224758038a88963349 (patch)
tree0fdcf1b0ec4280350ace887d77f4338767e4295d
parent43dfc18917539b62092b2e9f163abf3a442849fa (diff)
replicate-db: "hostname -f" -> "hostname"
-rwxr-xr-xreplicate-db6
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;