Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active January 25, 2020 15:13
Show Gist options
  • Save recursivecodes/f23a53f5752c816fec82634baf2ce6b5 to your computer and use it in GitHub Desktop.
Save recursivecodes/f23a53f5752c816fec82634baf2ce6b5 to your computer and use it in GitHub Desktop.
deploy.sh
#!/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