-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eb6ecd
commit f243754
Showing
5 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,6 +230,10 @@ def get_upgraded_dict(self): | |
|
||
upgraded_dict = Upgrading.set_compose_version(upgraded_dict) | ||
|
||
upgraded_dict = Upgrading.letsencrypt_certs_path( | ||
upgraded_dict, self.use_letsencrypt | ||
) | ||
|
||
return upgraded_dict | ||
|
||
@property | ||
|
@@ -358,6 +362,7 @@ def get_template(cls): | |
'local_interface': Network.get_primary_interface(), | ||
'local_interface_ip': primary_ip, | ||
'letsencrypt_email': '[email protected]', | ||
'letsencrypt_certs_path_updated': False, | ||
'maintenance_date_iso': '', | ||
'maintenance_date_str': '', | ||
'maintenance_email': '[email protected]', | ||
|
@@ -458,6 +463,14 @@ def get_template(cls): | |
def is_secure(self): | ||
return self.__dict['https'] is True | ||
|
||
@property | ||
def is_letsencrypt_certs_path_updated(self): | ||
value = self.__dict['letsencrypt_certs_path_updated'] | ||
if not value: | ||
print('IS_LETSENCRYPT PATH UPDATED', flush=True) | ||
self.__dict['letsencrypt_certs_path_updated'] = True | ||
return value | ||
|
||
def init_letsencrypt(self): | ||
if self.frontend and self.use_letsencrypt: | ||
reverse_proxy_path = self.get_letsencrypt_repo_path() | ||
|
@@ -675,6 +688,9 @@ def write_config(self): | |
""" | ||
Writes config to file `Config.CONFIG_FILE`. | ||
""" | ||
|
||
print('WRITE CONFIG', flush=True) | ||
|
||
# Adds `date_created`. This field will be use to determine | ||
# first usage of the setup option. | ||
if self.__dict.get('date_created') is None: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters