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 a bug where our freedns name was having a capital name. #30

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

tzachi-dar
Copy link
Collaborator

No description provided.

@Navid200
Copy link
Collaborator

If we don't merge this PR and we have capital letter in the subdomain, what will happen?
Please help me see the problem.

@tzachi-dar
Copy link
Collaborator Author

The issue is in the line
if [ ! -s /etc/letsencrypt/live/"$hostname"/cert.pem ] || [ ! -s /etc/letsencrypt/live/"$hostname"/privkey.pem ]

We are checking here that a file exists to know that we have succeeded. But this does not work since on the file name, the files are with small letters. That is letsencrypt always create the filename with small letters, and we think the file is not there and try again.

@Navid200
Copy link
Collaborator

Let me test it.

@Navid200
Copy link
Collaborator

I created a new subdomain with a capital letter in it.
I went through phase 2.
I can see that even though it has found the ip, it keeps saying freedns failed sleeping and keeps asking me to choose between 1 and 2.

Now, let me use your new suggested file instead.

@Navid200
Copy link
Collaborator

Yes, with the suggested change, a new subdomain containing a capital letter works fine.

So, I see the problem and I see that your suggestions fixes it. Thanks

@jamorham Would you please have a look at this PR and if it looks OK to you, would you please merge it?

@jamorham jamorham merged commit 9ff9649 into jamorham:vps-1 Nov 27, 2022
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.

3 participants