mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-07 05:25:14 +02:00
changed default command to 'help'
This commit is contained in:
+2
-3
@@ -25,7 +25,7 @@ before_script:
|
|||||||
- echo "${TMP_URL}" > domains.txt
|
- echo "${TMP_URL}" > domains.txt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# check if help command is worling
|
# check if help command is working
|
||||||
- ./letsencrypt.sh --help
|
- ./letsencrypt.sh --help
|
||||||
|
|
||||||
# move config out of the way and try signing certificate by using temporary config location
|
# move config out of the way and try signing certificate by using temporary config location
|
||||||
@@ -33,9 +33,8 @@ script:
|
|||||||
- ./letsencrypt.sh --domain "${TMP_URL}" -f tmp_config.sh
|
- ./letsencrypt.sh --domain "${TMP_URL}" -f tmp_config.sh
|
||||||
- mv tmp_config.sh config.sh
|
- mv tmp_config.sh config.sh
|
||||||
|
|
||||||
# run in cron mode (should find a non-expiring certificate) + check running without given mode (should default to cron mode)
|
# run in cron mode (should find a non-expiring certificate)
|
||||||
- ./letsencrypt.sh --cron
|
- ./letsencrypt.sh --cron
|
||||||
- ./letsencrypt.sh
|
|
||||||
|
|
||||||
# check if certificate is valid in various ways
|
# check if certificate is valid in various ways
|
||||||
- openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text
|
- openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text
|
||||||
|
|||||||
+3
-2
@@ -470,7 +470,7 @@ command_revoke() {
|
|||||||
command_help() {
|
command_help() {
|
||||||
echo "Usage: ${0} [-h] [command [argument]] [parameter [argument]] [parameter [argument]] ..."
|
echo "Usage: ${0} [-h] [command [argument]] [parameter [argument]] [parameter [argument]] ..."
|
||||||
echo
|
echo
|
||||||
echo "Default command: cron"
|
echo "Default command: help"
|
||||||
echo
|
echo
|
||||||
(
|
(
|
||||||
echo "Commands:"
|
echo "Commands:"
|
||||||
@@ -602,7 +602,8 @@ while getopts ":hcer:d:xf:p:" option; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z "${COMMAND}" ]]; then
|
if [[ -z "${COMMAND}" ]]; then
|
||||||
COMMAND="cron"
|
command_help
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
init_system
|
init_system
|
||||||
|
|||||||
Reference in New Issue
Block a user