mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:31:51 +02:00
Fix default directories on Linux (#6560)
* fix default directories * update changelog
This commit is contained in:
+3
-2
@@ -14,13 +14,14 @@ Certbot adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
*
|
* The default work and log directories have been changed back to
|
||||||
|
/var/lib/letsencrypt and /var/log/letsencrypt respectively.
|
||||||
|
|
||||||
Despite us having broken lockstep, we are continuing to release new versions of
|
Despite us having broken lockstep, we are continuing to release new versions of
|
||||||
all Certbot components during releases for the time being, however, the only
|
all Certbot components during releases for the time being, however, the only
|
||||||
package with changes other than its version number was:
|
package with changes other than its version number was:
|
||||||
|
|
||||||
*
|
* certbot
|
||||||
|
|
||||||
More details about these changes can be found on our GitHub repo.
|
More details about these changes can be found on our GitHub repo.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -180,8 +180,8 @@ WINDOWS_DEFAULT_FOLDERS = {
|
|||||||
}
|
}
|
||||||
LINUX_DEFAULT_FOLDERS = {
|
LINUX_DEFAULT_FOLDERS = {
|
||||||
'config': '/etc/letsencrypt',
|
'config': '/etc/letsencrypt',
|
||||||
'work': '/var/letsencrypt/lib',
|
'work': '/var/lib/letsencrypt',
|
||||||
'logs': '/var/letsencrypt/log',
|
'logs': '/var/log/letsencrypt',
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_default_folder(folder_type):
|
def get_default_folder(folder_type):
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import unittest
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import copy
|
import copy
|
||||||
|
import sys
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
import six
|
import six
|
||||||
@@ -41,6 +42,15 @@ class TestReadFile(TempDirTestCase):
|
|||||||
self.assertEqual(contents, test_contents)
|
self.assertEqual(contents, test_contents)
|
||||||
|
|
||||||
|
|
||||||
|
class FlagDefaultTest(unittest.TestCase):
|
||||||
|
"""Tests cli.flag_default"""
|
||||||
|
|
||||||
|
def test_linux_directories(self):
|
||||||
|
if 'fcntl' in sys.modules:
|
||||||
|
self.assertEqual(cli.flag_default('config_dir'), '/etc/letsencrypt')
|
||||||
|
self.assertEqual(cli.flag_default('work_dir'), '/var/lib/letsencrypt')
|
||||||
|
self.assertEqual(cli.flag_default('logs_dir'), '/var/log/letsencrypt')
|
||||||
|
|
||||||
|
|
||||||
class ParseTest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
class ParseTest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
||||||
'''Test the cli args entrypoint'''
|
'''Test the cli args entrypoint'''
|
||||||
|
|||||||
Reference in New Issue
Block a user