Skip to content

Commit

Permalink
ssl old syntax fixed
Browse files Browse the repository at this point in the history
Error when ssl is used with old syntax and root path.
  • Loading branch information
QROkes committed Dec 29, 2018
1 parent 6a184a7 commit 2d059b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/site
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ elif [[ "$type" == "-delete" && -a /etc/nginx/sites-available/$domain ]]; then
# SSL (Letsencrypt)
elif [[ ( $type == "-ssl-on" || $type == "-ssl-off" || $type == "-ssl" ) && -a /etc/nginx/sites-available/$domain ]]; then
isssl=$(sed -n -e '/WebinolyNginxServerStart/,$p' /etc/nginx/sites-available/$domain | grep -F "ssl_certificate_key")
if [[ ( $type == "-ssl-on" && -z $value ) || ( $type == "-ssl" && $value == "on" ) ]]; then
if [[ ( $type == "-ssl-on" ) || ( $type == "-ssl" && $value == "on" ) ]]; then
[[ -z $isssl ]] && site_ssl_on || echo "${red}SSL is already enabled for your site -${blu} $domain ${end}"
elif [[ ( $type == "-ssl-off" || ( $type == "-ssl" && ( $value == "off" || $value == "off-force" ))) ]]; then
[[ -n $isssl ]] && site_ssl_off || echo "${red}SSL is already disabled for your site -${blu} $domain ${end}"
Expand Down

0 comments on commit 2d059b0

Please sign in to comment.