mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-07 07:33:26 +02:00
[PR #40] [MERGED] Don't use SCRIPTDIR #679
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/40
Author: @digint
Created: 12/12/2015
Status: ✅ Merged
Merged: 12/14/2015
Merged by: @lukas2511
Base:
master← Head:no_scriptdir📝 Commits (2)
1cd2eb2never fallback to SCRIPTDIR, this is error-prone and confusing1e33cfemake default PRIVATE_KEY and WELLKNOWN relative to BASEDIR, even if BASEDIR is overridden in config.sh; basic checks on BASEDIR📊 Changes
2 files changed (+28 additions, -17 deletions)
View changed files
📝
config.sh.example(+5 -5)📝
letsencrypt.sh(+23 -12)📄 Description
When deploying your script, I found that you are using SCRIPTDIR as fall-back directory. This is very error-prone, and completely unnecessary (as BASEDIR defaults to SCRIPTDIR).
For security sake, NOTHING should be relative to SCRIPTDIR, not even the config.sh file location (I did not patch this as it would change the basic bahaviour).
Some further suggestions:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.