mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-03 11:41:41 +02:00
add --display-terms to display the URL for the current ToS
Implements #649
This commit is contained in:
committed by
Lukas Schauer
parent
7dfde364a3
commit
7cc9e2d07f
+14
-1
@@ -1451,6 +1451,15 @@ command_version() {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Usage: --display-terms
|
||||||
|
# Description: Display current terms of service
|
||||||
|
command_terms() {
|
||||||
|
init_system
|
||||||
|
echo "The current terms of service: $CA_TERMS"
|
||||||
|
echo "+ Done!"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# Usage: --register
|
# Usage: --register
|
||||||
# Description: Register account key
|
# Description: Register account key
|
||||||
command_register() {
|
command_register() {
|
||||||
@@ -1978,6 +1987,10 @@ main() {
|
|||||||
PARAM_ACCEPT_TERMS="yes"
|
PARAM_ACCEPT_TERMS="yes"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--display-terms)
|
||||||
|
set_command terms
|
||||||
|
;;
|
||||||
|
|
||||||
--signcsr|-s)
|
--signcsr|-s)
|
||||||
shift 1
|
shift 1
|
||||||
set_command sign_csr
|
set_command sign_csr
|
||||||
@@ -2147,7 +2160,6 @@ main() {
|
|||||||
check_parameters "${1:-}"
|
check_parameters "${1:-}"
|
||||||
PARAM_KEY_ALGO="${1}"
|
PARAM_KEY_ALGO="${1}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unknown parameter detected: ${1}" >&2
|
echo "Unknown parameter detected: ${1}" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
@@ -2168,6 +2180,7 @@ main() {
|
|||||||
revoke) command_revoke "${PARAM_REVOKECERT}";;
|
revoke) command_revoke "${PARAM_REVOKECERT}";;
|
||||||
deactivate) command_deactivate;;
|
deactivate) command_deactivate;;
|
||||||
cleanup) command_cleanup;;
|
cleanup) command_cleanup;;
|
||||||
|
terms) command_terms;;
|
||||||
version) command_version;;
|
version) command_version;;
|
||||||
*) command_help; exit 1;;
|
*) command_help; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user