-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from srvrco/remove-seq-dependency
Remove dependency on seq, ensure clean_up doesn't try to delete /tmp
- Loading branch information
Showing
3 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /usr/bin/env bats | ||
|
||
load '/bats-support/load.bash' | ||
load '/bats-assert/load.bash' | ||
load '/getssl/test/test_helper.bash' | ||
|
||
|
||
@test "Check that if domain storage isn't set getssl doesn't try to delete /tmp" { | ||
if [ -n "$STAGING" ]; then | ||
skip "Using staging server, skipping internal test" | ||
fi | ||
CONFIG_FILE="getssl-http01-no-domain-storage.cfg" | ||
setup_environment | ||
mkdir ${INSTALL_DIR}/.getssl | ||
cp "${CODE_DIR}/test/test-config/${CONFIG_FILE}" "${INSTALL_DIR}/.getssl/getssl.cfg" | ||
run ${CODE_DIR}/getssl -a | ||
assert_success | ||
assert_line 'Not going to delete TEMP_DIR ///tmp as it appears to be /tmp' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Uncomment and modify any variables you need | ||
# see https://github.com/srvrco/getssl/wiki/Config-variables for details | ||
# see https://github.com/srvrco/getssl/wiki/Example-config-files for example configs | ||
# | ||
CA="https://pebble:14000/dir" | ||
|
||
# Additional domains - this could be multiple domains / subdomains in a comma separated list | ||
SANS="" | ||
|
||
# Acme Challenge Location. | ||
ACL=('/var/www/html/.well-known/acme-challenge') | ||
|
||
#Set USE_SINGLE_ACL="true" to use a single ACL for all checks | ||
USE_SINGLE_ACL="false" | ||
|
||
# Location for all your certs, these can either be on the server (full path name) | ||
# or using ssh /sftp as for the ACL | ||
DOMAIN_CERT_LOCATION="/etc/nginx/pki/server.crt" | ||
DOMAIN_KEY_LOCATION="/etc/nginx/pki/private/server.key" | ||
CA_CERT_LOCATION="/etc/nginx/pki/chain.crt" | ||
DOMAIN_CHAIN_LOCATION="" # this is the domain cert and CA cert | ||
DOMAIN_PEM_LOCATION="" # this is the domain_key, domain cert and CA cert | ||
|
||
# The command needed to reload apache / nginx or whatever you use | ||
RELOAD_CMD="cp /getssl/test/test-config/nginx-ubuntu-ssl ${NGINX_CONFIG} && /getssl/test/restart-nginx" | ||
|
||
# Define the server type and confirm correct certificate is installed | ||
SERVER_TYPE="https" | ||
CHECK_REMOTE="true" | ||
|
||
DOMAIN_STORAGE="/" |