Skip to content

Commit 2a862ff

Browse files
committed
Change positioning and supress some messages.
1 parent 226c09a commit 2a862ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install/hst-migration.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ apt-key add deb_signing.key
118118
# Remove vesta packages
119119
echo "Remove VestaCP packages..."
120120
systemctl stop vesta
121-
apt-get -qq remove vesta vesta-nginx vesta-php vesta-ioncube vesta-softaculous -y > /dev/null
121+
apt-get -qq remove vesta vesta-nginx vesta-php vesta-ioncube vesta-softaculous -y > /dev/null 2>&1
122122

123123
# Clear up softaculous
124124
rm -fr /usr/local/vesta/softaculous
@@ -129,6 +129,12 @@ mv /etc/profile.d/vesta.sh /etc/profile.d/hestia.sh
129129
mv /usr/local/vesta $HESTIA
130130
mv $HESTIA/conf/vesta.conf $HESTIA/conf/hestia.conf
131131

132+
# Install hestia packages
133+
echo "Update System Repository and install HestiaCP Packages..."
134+
apt-get -qq update
135+
apt-get -qq upgrade -y > /dev/null 2>&1
136+
apt-get -qq install hestia hestia-nginx hestia-php -y > /dev/null 2>&1
137+
132138
# Add changed configuration files
133139
echo "export HESTIA='$HESTIA'" >> /etc/profile.d/hestia.sh
134140

@@ -151,12 +157,6 @@ sed -i 's/vesta/hestia/g' /etc/roundcube/config.inc.php
151157
rm /etc/logrotate.d/vesta
152158
cp -f $hestiacp/logrotate/vesta /etc/logrotate.d/hestia
153159

154-
# Install hestia packages
155-
echo "Update System Repository and install HestiaCP Packages..."
156-
apt-get -qq update
157-
apt-get -qq upgrade -y
158-
apt-get -qq install hestia hestia-nginx hestia-php -y
159-
160160
# Restart hestia service once
161161
systemctl restart hestia
162162

0 commit comments

Comments
 (0)