Skip to content

Instantly share code, notes, and snippets.

@jjeising
Created July 6, 2020 16:06
Show Gist options
  • Save jjeising/09d6009f5813bf47760fea7bbb3c9ee1 to your computer and use it in GitHub Desktop.
Save jjeising/09d6009f5813bf47760fea7bbb3c9ee1 to your computer and use it in GitHub Desktop.
acme() {
issue=(/root/.acme.sh/acme.sh --issue -w "/var/www/acme/")
install=(/root/.acme.sh/acme.sh --install-cert --fullchain-file "/etc/ssl/nginx/${1}.pem" --key-file "/etc/ssl/nginx/${1}.key" --reloadcmd "/etc/init.d/nginx reload")
for arg do
issue+=(-d "$arg")
install+=(-d "$arg")
done
"${issue[@]}" && "${install[@]}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment