-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Show LetsEncrypt certinfo on dietpi-banner for non-root users #7121
Show LetsEncrypt certinfo on dietpi-banner for non-root users #7121
Conversation
Thanks, makes sense to handle non-root cases gracefully. However, always using
|
Right, I will do that. Thanks |
7e64229
to
c2726fe
Compare
4824142
to
8e37931
Compare
8e37931
to
ffb473a
Compare
6c16b5b
to
f3b4256
Compare
Use dash instead of bash for printing LE cert status via sudo, merge NOPASSWD check and actual sudo call into one, and avoid command substitutions where possible.
I found a way to merge the It is not perfect: If |
Non-root users can't see LetsEncrypt valid end date because no access to /etc/letsencrypt/live/*
So LetsEncrypt shows "No certificate found".
This side script with sudo allows everybody to see Let's Encrypt cert status