Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ssl=no #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fix ssl=no #49

wants to merge 3 commits into from

Conversation

shamir92
Copy link

hi
I already change a bit in here
but dunno its work or not :D
found on other solution but not committed
thanks

Shamir Husein added 3 commits February 16, 2017 13:02
HAS_CERT=`$VESTA_PATH/bin/v-get-web-domain-value $USER $DOMAIN SSL`
if [[ $HAS_CERT == 'no' ]]
HAS_CERT=`$VESTA_PATH/bin/v-list-web-domain-ssl $USER $DOMAIN`
if [[ $HAS_CERT == '' ]]
Copy link

@ryanbrownell ryanbrownell Feb 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a better way to detect empty strings with bash scripting. In fact this method is used earlier on in this script.

Use this instead:
if [[ -z "$HAS_CERT" ]]

For documentation purposes, it is noteworthy that the new v-list-web-domain-ssl script either returns nothing (when there is no certificate) or the details of the certificate itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants