aboutsummaryrefslogtreecommitdiff
path: root/nixos-switch.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-23 07:15:11 -0300
committerEuAndreh <eu@euandre.org>2020-08-23 07:15:11 -0300
commitffa42deab1068d341d091274892b242b14932c2a (patch)
treeb236d77890aa8f123e18b306277a661b17aed53d /nixos-switch.sh
parentRename data-folder-init systemd service (diff)
downloadserver-ffa42deab1068d341d091274892b242b14932c2a.tar.gz
server-ffa42deab1068d341d091274892b242b14932c2a.tar.xz
Serve favicon from repo in cgit
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-xnixos-switch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos-switch.sh b/nixos-switch.sh
index 2ef7533..12a7dfe 100755
--- a/nixos-switch.sh
+++ b/nixos-switch.sh
@@ -7,6 +7,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
envsubst < vps-configuration.env.nix | ssh "$TLD" 'cat > /etc/nixos/configuration.nix'
echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S nix-channel --add "https://nixos.org/channels/nixos-${SYSTEM_STATE_VERSION}" nixos
echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade
+rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/"
# Ugly hack to change TLS certificates permissions
echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "\