redirect dmidecode stderr -> stdout, openvpn config check
This commit is contained in:
parent
fe954babc7
commit
5050648451
|
@ -51,7 +51,7 @@ async def initialize():
|
|||
return False
|
||||
|
||||
code, stdout, stderr = await utils.async_run_command(
|
||||
"dmidecode -t 2",
|
||||
"dmidecode -t 2 2>&1",
|
||||
20
|
||||
)
|
||||
if code == 0 and not stderr:
|
||||
|
@ -60,7 +60,7 @@ async def initialize():
|
|||
else:
|
||||
return False
|
||||
code, stdout, stderr = await utils.async_run_command(
|
||||
"dmidecode",
|
||||
"dmidecode 2>&1",
|
||||
20
|
||||
)
|
||||
if code == 0 and not stderr:
|
||||
|
|
|
@ -114,6 +114,10 @@ async def clore_partner_configure(clore_partner_config):
|
|||
vpn_secret_key=clore_partner_config["secret"]
|
||||
)
|
||||
|
||||
saved_config=''
|
||||
|
||||
config_exists = await aiofiles.os.path.exists(os.path.join(CLIENT_CONFIGS_LOCATION, PARTNER_CONFIG_NAME))
|
||||
if config_exists:
|
||||
async with aiofiles.open(os.path.join(CLIENT_CONFIGS_LOCATION, PARTNER_CONFIG_NAME), mode='r') as file:
|
||||
saved_config = await file.read()
|
||||
|
||||
|
|
Loading…
Reference in New Issue