mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 22:44:04 +08:00
Unload potential private keys before building
This commit is contained in:
parent
1e7f2d9991
commit
df8862c151
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,12 @@ def check_private_build(audience):
|
||||||
print("ERROR: Cannot find secret keys")
|
print("ERROR: Cannot find secret keys")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
# Drop private files if exist in memory
|
||||||
|
try:
|
||||||
|
del PRIVATE._private_secret_keys
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
dist_conf_file_path = get_conf_dist_file(audience)
|
dist_conf_file_path = get_conf_dist_file(audience)
|
||||||
if dist_conf_file_path and "_private" in dist_conf_file_path:
|
if dist_conf_file_path and "_private" in dist_conf_file_path:
|
||||||
print("INFO: Building with a private conf.dist file")
|
print("INFO: Building with a private conf.dist file")
|
||||||
|
|
Loading…
Reference in a new issue