Page 1 of 1

Bug in install script for RHEL

Posted: Mon Jun 22, 2015 12:06 pm
by endreottem
I tried to install VestaCP on CentOS 6, but the installation failed.

Seems that there's an error in the install script for RHEL:
wget $CHOST/$VERSION/dovecot.tar.gz -O /etc/dovecot.tar.gz
cd /etc/
rm -rf dovecot
tar -xzf dovecot.tar.gz
rm -f dovecot.tar.gz
chown -R root:root /etc/dovecot

The file http://c.vestacp.com/0.9.8/rhel/dovecot.tar.gz only contains dovecot.conf. On your server there's also a file named dovecot-new.tar.gz which seems to contain the correct files. As a result, the installation fails.

I edited the script so it says:
wget $CHOST/$VERSION/dovecot-new.tar.gz -O /etc/dovecot.tar.gz

Now the installation finishes without any errors. You should either rename dovecot-new.tar.gz to dovecot.tar.gz on your server (preferrably) or edit the script to fetch dovecot-new.tar.gz instead.

Re: Bug in install script for RHEL

Posted: Mon Jun 29, 2015 5:35 pm
by nobodypb
This is because it changes to
wget $CHOST/$VERSION/$release/dovecot.tar.gz -O /etc/dovecot.tar.gz
to support CentOS7

Re: Bug in install script for RHEL

Posted: Mon Jun 29, 2015 6:18 pm
by kDas
But lol, it still can't be bootstrapped on CentOS7.

Re: Bug in install script for RHEL

Posted: Mon Jun 29, 2015 9:12 pm
by nobodypb
It can! The right install script just isn't there.
I modified mine to work: https://github.com/nobodypb/vesta/blob/ ... ll-rhel.sh

Re: Bug in install script for RHEL

Posted: Tue Jun 30, 2015 12:16 pm
by kDas
nobodypb wrote:It can! The right install script just isn't there.
I modified mine to work: https://github.com/nobodypb/vesta/blob/ ... ll-rhel.sh
That not official one, right?

Re: Bug in install script for RHEL

Posted: Tue Jun 30, 2015 12:53 pm
by skurudo
kDas wrote:That not official one, right?
Yep, it's forked version, not official.

Re: Bug in install script for RHEL

Posted: Tue Jun 30, 2015 1:23 pm
by kDas
skurudo wrote:
kDas wrote:That not official one, right?
Yep, it's forked version, not official.
Well, will wait for yours one :)

Re: Bug in install script for RHEL

Posted: Tue Jun 30, 2015 1:36 pm
by nobodypb
Yep, better do that.
Mine is just for experimental purposes, because I have CentOS7 servers, wanted to configure them and the official install-script isn't done/tested yet.