hi, i tried to upgrade mail-in-a-box but getting error:
# curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v57a . . .
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), done.
error: Your local changes to the following files would be overwritten by checkout:
conf/fail2ban/jails.conf
Please commit your changes or stash them before you switch branches.
Aborting
Update failed. Did you modify something in /root/mailinabox?
i did not made a changes and tried to install it again with “mailinabox” command, but without success… is there some logs?
It looks like there was some kind of change made to jails.conf, because both of those files were changed on version 54 and then not changed until version 57. I’m not any kind of git expert or anything, but maybe even if the file was opened, nothing changed in the text, but the date changed, maybe it interprets there is some kind of change from what the file was when you very first put it on server.
You might try posting over on the Slack channel on how best to handle this. I don’t think it’s anything that difficult.
Something similar would be to move the current folder to a backup location such as mv /root/mailinabox /root/mailinabox-problem-backup then run the install command.
I can’t think of a reason this would be a problem, but I’ve never tried it. It’s why I suggested posting in Slack, as that usually attracts different sets of eyes than the forums.