From b54cc1dda4f7a1fe7aa7c98880ec99ded39126da Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 18 Sep 2020 03:49:06 -0300 Subject: Initial setup of matrix with mautrix-whatsapp --- nixos-switch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nixos-switch.sh') diff --git a/nixos-switch.sh b/nixos-switch.sh index d480f25..b53fbe4 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -10,7 +10,7 @@ else USER_PASSWORD="$(cat ./secrets/user-password.txt)" fi -# Copy secrets +# Copy secrets and configuration files echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "\ sudo mkdir -p ${SECRETS_ROOT}; \ sudo chown -R ${USER_NAME}:users ${SECRETS_ROOT}/; \ @@ -22,6 +22,7 @@ envsubst < envsubst-configuration.nix | ssh "$TLD" 'cat > /etc/nixos/envsubst-co echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "\ sudo chown nextcloud:users ${SECRETS_ROOT}/nextcloud-admin.txt; \ sudo chown nextcloud:users ${SECRETS_ROOT}/nextcloud-database.txt;" +scp mautrix-whatsapp.yaml "${TLD}:~/config.yaml" # Run nixos-rebuild scp vps-configuration.nix "${TLD}:/etc/nixos/configuration.nix" @@ -34,3 +35,5 @@ rsync -avzP favicons/ "${TLD}:${FAVICONS_ROOT}/" scp cgit-about.html "${TLD}:${GIT_ROOT}/about.html" scp ci-gen-index.sh "${TLD}:${CI_LOGS_ROOT}/ci-gen-index.sh" scp bash-profile.sh "${TLD}:.bash_profile" + +echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "sudo systemctl restart matrix-synapse.service" -- cgit v1.2.3