Actually, I think I caught a really subtle bug in Brian's script above. Instead of what he has, try this:
Originally Posted by bsb
The two differences are:
while read i; do
su - zimbra -c "zmlocalconfig -f -e '$i'"
done < /opt/zimbra/.saveconfig/config.save
1) It's more vocal about what it's doing -- which doesn't solve the problem directly, but if it's hanging, you'd see where
2) I added ' chars around the $i. Since the zmlocalconfig contains values that are variables.. along the lines of "$zimbra_home" or whatever, it's being incorrectly interpreted by the shell. The ' chars will prevent that.
In addition to the above, I noticed that zimbra_uid and zimbra_gid were being incorrectly set.
So, in general, I just ran 'zmlocalconfig' on it's own, did a sanity check, and discovered that it indeed was not sane :-) How it got that way, I still can't tell... I can reproduce it every time with this installation.
But, to fix it, I run zmlocalconfig on the working installation (ie, the live box, you're testing this in development, right? ;-) -- copy that over to the test box, sanitize the information, run it all through zmlocalconfig (using the script above), and then continue the installation with zmsetup.pl.
Hope that helps,