mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:22:14 +02:00
* Fixes #7220 to allow config to be loaded from <(envsubst < template)
This commit is contained in:
@@ -303,8 +303,8 @@ def validate_file(filename):
|
|||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
raise errors.PluginError('File not found: {0}'.format(filename))
|
raise errors.PluginError('File not found: {0}'.format(filename))
|
||||||
|
|
||||||
if not os.path.isfile(filename):
|
if os.path.isdir(filename):
|
||||||
raise errors.PluginError('Path is not a file: {0}'.format(filename))
|
raise errors.PluginError('Path is a directory: {0}'.format(filename))
|
||||||
|
|
||||||
|
|
||||||
def validate_file_permissions(filename):
|
def validate_file_permissions(filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user