Skip to content

Commit

Permalink
add deployment for backup public key and password
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jan 26, 2024
1 parent 8674351 commit 868f9be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deploy-static
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ ssh $remote "ln -snf $target /srv/attestation.app && sync /srv/attestation.app"

echo "root $target;" > nginx-tmp/root_attestation.app.conf
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate nginx-tmp/{nginx.conf,mime.types,root_attestation.app.conf,snippets} $remote:/etc/nginx/
rsync -ptcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bin/
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
ssh $remote nginx -s reload

echo
echo active is now $target

rsync -ptcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bin/
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
rsync -ptcv --chmod=644 --fsync --preallocate backup-public-key.txt cloud-archive-password.txt [email protected]:

0 comments on commit 868f9be

Please sign in to comment.