aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-24 10:56:12 -0300
committerEuAndreh <eu@euandre.org>2020-08-24 10:56:12 -0300
commit844086b12d9651e1dde0ddccdaad070590a1ad1d (patch)
tree645254dbf25c26c66d8773848b2fca20718a38bc
parentAdd .bash_profile file and copy it with scp on deployment (diff)
downloadserver-844086b12d9651e1dde0ddccdaad070590a1ad1d.tar.gz
server-844086b12d9651e1dde0ddccdaad070590a1ad1d.tar.xz
Overwrite favicons/ folder on deployment
-rwxr-xr-xnixos-switch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos-switch.sh b/nixos-switch.sh
index 6567e4c..a7ca73f 100755
--- a/nixos-switch.sh
+++ b/nixos-switch.sh
@@ -7,6 +7,8 @@ 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
+
+ssh "${TLD}" rm -rf "${DATA_ROOT}/favicons/"
rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/"
scp bash-profile.sh "${TLD}:.bash_profile"