1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-05-02 02:25:12 +02:00

Merge branch 'jammyjellyfish2204' into jammyjellyfish2204-dovecot_ssl

This commit is contained in:
Steve Hay
2022-09-24 15:57:40 -04:00
5 changed files with 29 additions and 3 deletions

View File

@@ -281,6 +281,7 @@ def perform_backup(full_backup):
service_command("php8.0-fpm", "stop", quit=True)
service_command("postfix", "stop", quit=True)
service_command("dovecot", "stop", quit=True)
service_command("postgrey", "stop", quit=True)
# Execute a pre-backup script that copies files outside the homedir.
# Run as the STORAGE_USER user, not as root. Pass our settings in
@@ -310,6 +311,7 @@ def perform_backup(full_backup):
get_duplicity_env_vars(env))
finally:
# Start services again.
service_command("postgrey", "start", quit=False)
service_command("dovecot", "start", quit=False)
service_command("postfix", "start", quit=False)
service_command("php8.0-fpm", "start", quit=False)

View File

@@ -571,6 +571,8 @@ def system_status():
# Create a temporary pool of processes for the status checks
with multiprocessing.pool.Pool(processes=5) as pool:
run_checks(False, env, output, pool)
pool.close()
pool.join()
return json_response(output.items)
@app.route('/system/updates')