diff options
author | EuAndreh <eu@euandre.org> | 2020-08-25 10:23:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-25 10:23:02 -0300 |
commit | 65c9315de436677f2b68891100b3bb7c23b9422c (patch) | |
tree | e249b0f4c7bb05c3ed3a9e904f92e42b951fb605 | |
parent | Add pires-prod deployment (diff) | |
download | server-65c9315de436677f2b68891100b3bb7c23b9422c.tar.gz server-65c9315de436677f2b68891100b3bb7c23b9422c.tar.xz |
Always restart pires-prod in nixos-switch.sh
-rwxr-xr-x | nixos-switch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos-switch.sh b/nixos-switch.sh index 90f54cc..af3606d 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -14,6 +14,8 @@ rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/" scp cgit-about.html "${TLD}:${GIT_ROOT}/about.html" scp bash-profile.sh "${TLD}:.bash_profile" +echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S systemctl restart pires-prod.service + # shellcheck disable=2050 if [[ true = false ]]; then echo Ugly hack to change TLS certificates permissions |