mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-15 13:43:11 +01:00
Shell linting
This commit is contained in:
parent
6dd7bc45f5
commit
45df81962e
@ -104,7 +104,7 @@ function add_location_configuration {
|
||||
|
||||
function add_standalone_configuration {
|
||||
local domain="${1:?}"
|
||||
if grep -q $domain "/etc/nginx/conf.d/default.conf"; then
|
||||
if grep -q "$domain" "/etc/nginx/conf.d/default.conf"; then
|
||||
# If the domain is already present in nginx's conf, use the location configuration.
|
||||
add_location_configuration "$domain"
|
||||
else
|
||||
@ -127,7 +127,7 @@ EOF
|
||||
}
|
||||
|
||||
function remove_all_standalone_configurations {
|
||||
local old_shopt_options=$(shopt -p) # Backup shopt options
|
||||
local old_shopt_options; old_shopt_options=$(shopt -p) # Backup shopt options
|
||||
shopt -s nullglob
|
||||
for file in "/etc/nginx/conf.d/standalone-cert-"*".conf"; do
|
||||
rm -f "$file"
|
||||
|
Loading…
Reference in New Issue
Block a user