pyinfra: this order is prettier with most deployments

This commit is contained in:
missytake 2023-10-09 08:46:15 +02:00
parent 82b1fd8c01
commit 39e81f74b5

View file

@ -41,9 +41,9 @@ def deploy_teams_bot(unix_user: str, bot_email: str, bot_passwd: str, dbdir: str
if not dbdir: if not dbdir:
dbdir = f"/home/{unix_user}/.config/teams_bot/{bot_email}/" dbdir = f"/home/{unix_user}/.config/teams_bot/{bot_email}/"
secrets = [ secrets = [
f'TEAMS_DBDIR={dbdir}',
f"TEAMS_INIT_EMAIL={bot_email}", f"TEAMS_INIT_EMAIL={bot_email}",
f"TEAMS_INIT_PASSWORD={bot_passwd}", f"TEAMS_INIT_PASSWORD={bot_passwd}",
f'TEAMS_DBDIR={dbdir}',
] ]
env = "\n".join(secrets) env = "\n".join(secrets)
files.put( files.put(