aboutsummaryrefslogtreecommitdiff
path: root/nixos-switch.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-25 10:23:02 -0300
committerEuAndreh <eu@euandre.org>2020-08-25 10:23:02 -0300
commit65c9315de436677f2b68891100b3bb7c23b9422c (patch)
treee249b0f4c7bb05c3ed3a9e904f92e42b951fb605 /nixos-switch.sh
parentAdd pires-prod deployment (diff)
downloadserver-65c9315de436677f2b68891100b3bb7c23b9422c.tar.gz
server-65c9315de436677f2b68891100b3bb7c23b9422c.tar.xz
Always restart pires-prod in nixos-switch.sh
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-xnixos-switch.sh2
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