1

Topic: Upgrade tutorial fix for MySQL or other updates

Dear Zhang,

today I updated some iRedMail servers and I noticed a little issue.

In the upgrade tutorial you ask to download scripts via wget. Example

"
Download SQL template file and import it:

cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/ … mail.mysql
mysql vmail < /root/iredmail.mysql
"

This is from https://docs.iredmail.org/upgrade.iredm … 0.9.9.html

If it happens that a file iredmail.mysql is already existing, wget will save all in iredmail.mysql.1

If this happens without notice (it happened to me..), the mysql command using that script might fail or produce undefined results.

Please consider changing the wget command and add -O option:

wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/ … mail.mysql

This will wget force to save all only to iredmail.mysql, overwriting previous files.

Best regards,
Bernhard

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrade tutorial fix for MySQL or other updates

Fixed as suggested. Thanks. smile