-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add deployment for backup public key and password
- Loading branch information
1 parent
8674351
commit 868f9be
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]: |