diff options
author | EuAndreh <eu@euandre.org> | 2020-09-18 03:49:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-09-18 14:02:03 -0300 |
commit | b54cc1dda4f7a1fe7aa7c98880ec99ded39126da (patch) | |
tree | 52387a187aa2126681302609536994d1b609b27f /nixos-switch.sh | |
parent | Disable pires-prod service (diff) | |
download | server-b54cc1dda4f7a1fe7aa7c98880ec99ded39126da.tar.gz server-b54cc1dda4f7a1fe7aa7c98880ec99ded39126da.tar.xz |
Initial setup of matrix with mautrix-whatsapp
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-x | nixos-switch.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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" |