mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 11:42:17 +02:00
Change permission error message
Commonly, this will be caused by a failure to sudo, so the previous text was not necessarily going to be helpful.
This commit is contained in:
@@ -33,8 +33,7 @@ def make_or_verify_dir(directory, mode=0o755, uid=0):
|
|||||||
if exception.errno == errno.EEXIST:
|
if exception.errno == errno.EEXIST:
|
||||||
if not check_permissions(directory, mode, uid):
|
if not check_permissions(directory, mode, uid):
|
||||||
raise errors.LetsEncryptClientError(
|
raise errors.LetsEncryptClientError(
|
||||||
"%s exists, but does not have the proper "
|
"%s exists, this client can't access it" % directory)
|
||||||
"permissions or owner" % directory)
|
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user