diff options
| author | EuAndreh <eu@euandre.org> | 2020-08-24 10:56:12 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-08-24 10:56:12 -0300 |
| commit | 844086b12d9651e1dde0ddccdaad070590a1ad1d (patch) | |
| tree | 645254dbf25c26c66d8773848b2fca20718a38bc | |
| parent | Add .bash_profile file and copy it with scp on deployment (diff) | |
| download | toph-844086b12d9651e1dde0ddccdaad070590a1ad1d.tar.gz toph-844086b12d9651e1dde0ddccdaad070590a1ad1d.tar.xz | |
Overwrite favicons/ folder on deployment
| -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 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" |
