mirror of
https://github.com/chatmail/relay.git
synced 2026-06-09 21:21:09 +00:00
chore: require pyinfra v3
This commit is contained in:
@@ -68,8 +68,9 @@ def run_cmd(args, out):
|
||||
deploy_path = importlib.resources.files(__package__).joinpath("deploy.py").resolve()
|
||||
pyinf = "pyinfra --dry" if args.dry_run else "pyinfra"
|
||||
cmd = f"{pyinf} --ssh-user root {args.config.mail_domain} {deploy_path}"
|
||||
if version.parse(pyinfra.__version__) >= version.parse("3"):
|
||||
cmd += " -y"
|
||||
if version.parse(pyinfra.__version__) < version.parse("3"):
|
||||
out.red("Please re-run scripts/initenv.sh to update pyinfra to version 3.")
|
||||
return 1
|
||||
|
||||
retcode = out.check_call(cmd, env=env)
|
||||
if retcode == 0:
|
||||
|
||||
Reference in New Issue
Block a user