Add exit 0 after the command -v commands.

Otherwise it would exit 1 on nginx if you have not nginx installed.
This commit is contained in:
Benoît S. 2018-07-10 17:08:39 +02:00
parent c57b069bf5
commit 17159676d9

View file

@ -227,6 +227,7 @@ main() {
command -v apache2ctl >/dev/null && sed_selfsigned_cert_path_for_apache "/etc/apache2/ssl/${VHOST}.conf"
command -v nginx >/dev/null && sed_selfsigned_cert_path_for_nginx "/etc/nginx/ssl/${VHOST}.conf"
exit 0
}
readonly PROGNAME=$(basename "$0")