Mailcow-dockerized: Update via cronjob

Created on 28 May 2019  路  5Comments  路  Source: mailcow/mailcow-dockerized

Is your feature request related to a problem? Please describe.
I don't think cause I didn't find anything.

Describe the solution you'd like
I only know the way of updating with 麓./update.sh麓. I want to automate the process. Since you must accept the stop of the containers, you can't really automate it. I want simply to ad a cronjob with a script, where I change the directory and start the update-file.
If there is already such a feature ignore this request.

Most helpful comment

Yes, indeed, it is dangerous. It is better to always watch the update process.

All 5 comments

If you really want to do this you could crontab a script like:

#!/bin/bash
MCDIR=/your/mailcow/dir
cd $MCDIR
yes | ./update.sh >>$MCDIR/update.log
exit 0

This should run the script auto answeing yes to the prompts and log the result to a file so you can review if something goes wrong.

However you should not run it too often as it brings down the services for a good minute at least.

Yes, indeed, it is dangerous. It is better to always watch the update process.

Thanks for the little script. Maybe I just let the cronjob out and do this manually once a month.

Yes, you might miss for exemple some merge conflits problems you have to resolve manually if you customized some config stuff if you modded some files

I just use the default stuff. Closing this for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thannaske picture thannaske  路  3Comments

pgollor picture pgollor  路  3Comments

lgleim picture lgleim  路  3Comments

constin picture constin  路  3Comments

patrick7 picture patrick7  路  3Comments