summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xreplicate-db6
1 files changed, 3 insertions, 3 deletions
diff --git a/replicate-db b/replicate-db
index bd42dc8..af4fc36 100755
--- a/replicate-db
+++ b/replicate-db
@@ -39,12 +39,12 @@ sudo sed -i '
/^\s*\[mysqld]\s*$/ a group_concat_max_len = 4096 \
server-id = '"$RANDOM"' \
skip-networking
-' '/etc/mysql/my.cnf.d/server.cnf'
+' '/etc/my.cnf.d/server.cnf'
sudo systemctl start mysqld
sudo systemctl enable mysqld
-printf '\n\n%s\n%s\n\n\n\n\n' "${root_pw}" "${root_pw}" | \
+printf '\n\n\n%s\n%s\n\n\n\n\n' "${root_pw}" "${root_pw}" | \
sudo mysql_secure_installation
# set up stunnel
@@ -66,7 +66,7 @@ tmp_file=$(mktemp)
trap 'rm "${tmp_file}"' EXIT
ssh master@buildmaster.archlinux32.org '
- cd /var/backup;
+ cd /data/backup;
ls -t | grep -m1 '"'"'^database-.*\.xz$'"'"' | xargs pv
' > "${tmp_file}"