diff options
author | Erich Eckner <git@eckner.net> | 2018-06-22 14:11:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-22 14:11:39 +0200 |
commit | 1ebb0dbae09cebf9a535ac057e3d2b20817d1cbb (patch) | |
tree | 2e32b1d8a077cfd237982fbff1a735c5e209b3b2 | |
parent | 49f44a3fce2aec73da710a9e1ef3148c83100652 (diff) | |
download | releng-1ebb0dbae09cebf9a535ac057e3d2b20817d1cbb.tar.xz |
replicate-db: set random server-id
-rwxr-xr-x | replicate-db | 1 |
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/ |