File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function add_location_configuration {
104
104
105
105
function add_standalone_configuration {
106
106
local domain=" ${1:? } "
107
- if grep -q $domain " /etc/nginx/conf.d/default.conf" ; then
107
+ if grep -q " $domain " " /etc/nginx/conf.d/default.conf" ; then
108
108
# If the domain is already present in nginx's conf, use the location configuration.
109
109
add_location_configuration " $domain "
110
110
else
127
127
}
128
128
129
129
function remove_all_standalone_configurations {
130
- local old_shopt_options=$( shopt -p) # Backup shopt options
130
+ local old_shopt_options; old_shopt_options =$( shopt -p) # Backup shopt options
131
131
shopt -s nullglob
132
132
for file in " /etc/nginx/conf.d/standalone-cert-" * " .conf" ; do
133
133
rm -f " $file "
You can’t perform that action at this time.
0 commit comments