mirror of
https://github.com/chatmail/relay.git
synced 2026-05-12 09:04:36 +00:00
don't run deploy on import
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
from pyinfra import host, facts
|
import pyinfra
|
||||||
from chatmail import deploy_chatmail
|
from chatmail import deploy_chatmail
|
||||||
|
|
||||||
|
|
||||||
@@ -15,4 +15,5 @@ def main():
|
|||||||
deploy_chatmail(mail_domain, mail_server, dkim_selector)
|
deploy_chatmail(mail_domain, mail_server, dkim_selector)
|
||||||
|
|
||||||
|
|
||||||
|
if pyinfra.is_cli:
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user