]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
changed default command to 'help'
authorLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 11:54:51 +0000 (12:54 +0100)
committerLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 11:54:51 +0000 (12:54 +0100)
.travis.yml
letsencrypt.sh

index 81bfdc904049397d6e0ac526eb5ac42b3fb63ae3..8fd26d014e80fb9c1b55778039e27bfe8a1e270b 100644 (file)
@@ -25,7 +25,7 @@ before_script:
   - echo "${TMP_URL}" > domains.txt
 
 script:
-  # check if help command is worling
+  # check if help command is working
   - ./letsencrypt.sh --help
 
   # 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
   - 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
 
   # check if certificate is valid in various ways
   - openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text
index 26403f91ebad2db7f09eaef6619fabfb0193d7b4..9593b6b25693c3c2642e3cc509c69cdf63356d37 100755 (executable)
@@ -470,7 +470,7 @@ command_revoke() {
 command_help() {
   echo "Usage: ${0} [-h] [command [argument]] [parameter [argument]] [parameter [argument]] ..."
   echo
-  echo "Default command: cron"
+  echo "Default command: help"
   echo
   (
   echo "Commands:"
@@ -602,7 +602,8 @@ while getopts ":hcer:d:xf:p:" option; do
 done
 
 if [[ -z "${COMMAND}" ]]; then
-  COMMAND="cron"
+  command_help
+  exit 1
 fi
 
 init_system