os.path.exists

Signed-off-by: René Jochum <rene@jochum.dev>
master
René Jochum 4 years ago
parent 94a5a2728c
commit 7074e10e5e

@ -12,6 +12,7 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO postfix;
## Environment variables
- DOVECOT_HOST - if not given it will be `dovecot`
- MYDOMAIN
- SUBNET
- RELAYNETS

@ -25,7 +25,8 @@ if "MESSAGE_SIZE_LIMIT" not in os.environ:
if "DOVECOT_HOST" not in os.environ:
os.environ['DOVECOT_HOST'] = 'dovecot'
os.mkdir('/etc/postfix/sql')
if not os.path.exists('/etc/postfix/sql'):
os.mkdir('/etc/postfix/sql')
for postfix_file in glob.glob("/conf/*.cf", recursive=True):
destination = os.path.join("/etc/postfix", os.path.basename(postfix_file))

Loading…
Cancel
Save