File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ DEPLOY_DOCKER_LABEL=${DEPLOY_DOCKER_LABEL:-"sh.acme.deploy"}
36
36
DEFAULT_CONTAINER_CERTIFICATE_STORE=${DEFAULT_CONTAINER_CERTIFICATE_STORE:- " /certs" }
37
37
DEFAULT_CERTIFICATE_DEPLOYMENT=${DEFAULT_CERTIFICATE_DEPLOYMENT:- " crt,key" }
38
38
39
+ silence_output=false
40
+ verbose=false
41
+
39
42
# Return status codes:
40
43
# 0: certificate is valid and up to date
41
44
# 1: certificate has expired
@@ -576,7 +579,7 @@ help() {
576
579
echo " --version Show the version of the certificate manager"
577
580
fi
578
581
echo " -h, --help Show this help message"
579
- echo " -q, --quite Disable all output"
582
+ echo " -q, --quiet Disable all output"
580
583
echo " -v, --verbose Enable verbose output"
581
584
echo " "
582
585
@@ -625,13 +628,21 @@ while [ $# -gt 0 ]; do
625
628
help " $action "
626
629
exit 0
627
630
;;
631
+ -q|--quiet)
632
+ silence_output=true
633
+ ;;
628
634
* )
629
635
# ignore any other options as they are passed directly to the action to handle
630
636
;;
631
637
esac
632
638
shift
633
639
done
634
640
641
+ # @todo: this should be done in a better way (maybe logfile)
642
+ if [ " $silence_output " == true ]; then
643
+ exec > /dev/null 2>&1
644
+ fi
645
+
635
646
# set default CA server
636
647
acme.sh --set-default-ca --server " $ACME_CA " --uninstall-cronjob > /dev/null 2>&1
637
648
You can’t perform that action at this time.
0 commit comments