Repository navigation
Updated to work properly with SSH cert. Moved scripts to certs direct… - #192
Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
| @@ -1,5 +1,9 @@ | |||
| #!/bin/bash | |||
|
|
|||
| eval `ssh-agent` | |||
There was a problem hiding this comment.
this will turn on the ssh agent?
https://explainshell.com/explain?cmd=eval+%60ssh-agent%60
interesting.
| #!/bin/bash | ||
|
|
||
| eval `ssh-agent` | ||
| ssh-keyscan -H github.com >> ~/.ssh/known_hosts |
There was a problem hiding this comment.
this adds the ssh fingerprint of github into the ~/.ssh/known_hosts
https://explainshell.com/explain?cmd=ssh-keyscan+-H+github.com+%3E%3E+%7E%2F.ssh%2Fknown_hosts
|
|
||
| eval `ssh-agent` | ||
| ssh-keyscan -H github.com >> ~/.ssh/known_hosts | ||
| ssh-add /nimbus/id_rsa |
There was a problem hiding this comment.
add the actual ssh key that was pulled from a github secret
https://explainshell.com/explain?cmd=ssh-add+%2Fnimbus%2Fid_rsa
| @@ -0,0 +1 @@ | |||
| 0 15 * * * /nimbus/scripts/cert-update.sh > stdout | |||
There was a problem hiding this comment.
| cd /api-certificates | ||
| tar xvf letsencrypt_backup.tar -C / | ||
| crontab /nimbus/letsencrypt-backup-tar.cron | ||
| crontab /nimbus/scripts/letsencrypt-backup-tar.cron |
There was a problem hiding this comment.
gets the cron job running
https://explainshell.com/explain?cmd=crontab+%2Fnimbus%2Fscripts%2Fletsencrypt-backup-tar.cron
…ory.
What's New?
Fixes #188
Type of change (pick-one)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration (hardware/operating system/etc).
Checklist (check-all-before-merge)
formatting help:
- [x]means "checked' and- [ ]means "unchecked"I documented my code according to the Google Python Style Guide
I ran
./build_docs.shand the docs look fineI ran
./type_check.shand got no errorsI ran
./format.shbecause it automatically cleans my code for me 😄I ran
./lint.shto check for what "format" missedI added my tests to the
/testsdirectoryI ran
./run_tests.shand all the tests pass