Last active
January 25, 2020 15:13
-
-
Save recursivecodes/f23a53f5752c816fec82634baf2ce6b5 to your computer and use it in GitHub Desktop.
deploy.sh
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
#!/bin/bash | |
domain=[your domain name] | |
cert_dir=[/path/to/cert/copy/dir] | |
user=opc | |
cp /etc/letsencrypt/live/$domain/*.pem "$cert_dir"/ | |
chown $user "$cert_dir"/*.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment