Created
July 6, 2020 16:06
-
-
Save jjeising/09d6009f5813bf47760fea7bbb3c9ee1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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