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-22 14:11:39 +0200
committerErich Eckner <git@eckner.net>2018-06-22 14:11:39 +0200
commit1ebb0dbae09cebf9a535ac057e3d2b20817d1cbb (patch)
tree2e32b1d8a077cfd237982fbff1a735c5e209b3b2
parent49f44a3fce2aec73da710a9e1ef3148c83100652 (diff)
replicate-db: set random server-id
-rwxr-xr-xreplicate-db1
1 files changed, 1 insertions, 0 deletions
diff --git a/replicate-db b/replicate-db
index 9154d64..91706cb 100755
--- a/replicate-db
+++ b/replicate-db
@@ -39,6 +39,7 @@ sudo sed -i '
/myisam_sort_buffer_size/ a group_concat_max_len = 4096
/^#server-id/ {
s/^#//
+ s/[0-9]\+$/'"$RANDOM"'/
b
}
s/^server-id/#\0/