From e7891fd81393fc5b74a4f2270e034a17e5c3b140 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Nov 2019 11:55:49 +0100 Subject: replicate-db: do not use stunnel, but rather our vpn --- replicate-db | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/replicate-db b/replicate-db index af4fc36..9116a41 100755 --- a/replicate-db +++ b/replicate-db @@ -14,24 +14,12 @@ if [ -d '/var/lib/mysql' ]; then sudo rm -rf --one-file-system '/var/lib/mysql' '/etc/mysql' fi -if [ -d '/etc/stunnel' ]; then - read -p 'stunnel seems to be installed already - I will remove it first.' -r s - if [ -n "${s}" ]; then - echo 'Aborted.' - exit - fi - sudo systemctl stop stunnel || true - sudo systemctl disable stunnel || true - sudo pacman -Rs stunnel || true - sudo rm -rf --one-file-system '/etc/stunnel' -fi - read -p 'enter new root-pw: ' -s -r root_pw printf '\n' read -p 'enter replikat-pw: ' -s -r replikat_pw printf '\n' -sudo pacman -S --noconfirm mariadb stunnel +sudo pacman -S --noconfirm mariadb # set up mariadb sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql @@ -47,21 +35,6 @@ sudo systemctl enable mysqld printf '\n\n\n%s\n%s\n\n\n\n\n' "${root_pw}" "${root_pw}" | \ sudo mysql_secure_installation -# set up stunnel - -sudo tee /etc/stunnel/stunnel.conf > /dev/null <