summaryrefslogtreecommitdiff
path: root/replicate-db
diff options
context:
space:
mode:
Diffstat (limited to 'replicate-db')
-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/