Skip to content

Commit 4f8733a

Browse files
authored
Update hst-migration.sh
2 parents cd38806 + 64f76dd commit 4f8733a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

install/hst-migration.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://www.hestiacp.com
44

55
#
6-
# Currently Supported Operating Systems:
6+
# Currently supported Operating Systems:
77
#
88
# Debian 8, 9
99
# Ubuntu 14.04, 16.04, 18.04
@@ -27,7 +27,7 @@ if [ "$type" = "NoSupport" ]; then
2727
exit 1;
2828
fi
2929

30-
# Detect Codename
30+
# Detect codename
3131
if [ "$type" = "debian" ]; then
3232
codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
3333
release=$(cat /etc/debian_version|grep -o [0-9]|head -n1)
@@ -56,21 +56,21 @@ else
5656
exit 1
5757
fi
5858

59-
# Check the Vesta Version
59+
# Check current Vesta version
6060
if [ ! "$VERSION" = "0.9.8" ]; then
61-
echo "Wrong Vesta Version, stopping here."
61+
echo "Wrong Vesta version, stopping here."
6262
exit 1
6363
fi
6464

65-
# Inform abouot and ask to proceed migration.
65+
# Inform user and request confirmation for migration
6666
loop=1
6767
while [ "$loop" -eq 1 ]; do
6868
echo "Would you like to migrate to HestiaCP?"
69-
read -p "Please be warned, that we've removed and do not support softaculous and payed VestaCP extensions! [yes/no]: " sure
69+
read -p "Please be warned, that we have removed and do not support Softaculous and paid VestaCP extensions! [yes/no]: " sure
7070
if [ $sure == 'yes' ] || [ $sure == 'no' ]; then
7171
loop=0
7272
if [ $sure == 'no' ]; then
73-
echo "Canceling migration..."
73+
echo "Cancelling migration..."
7474
exit 1
7575
fi
7676
else
@@ -88,14 +88,14 @@ if [ ! -e '/usr/lib/apt/methods/https' ]; then
8888
check_result $? "Can't install apt-transport-https"
8989
fi
9090

91-
# Remove Vesta Repository if it exists.
91+
# Remove Vesta Repository if it exists
9292
echo "Removeing VestaCP Repository..."
9393
if [ -f /usr/local/vesta/conf/vesta.conf ]; then
9494
rm /etc/apt/sources.list.d/vesta.list*
9595
fi
9696

9797
if [ "$type" = "debian" ]; then
98-
# Installing sury php repo
98+
# Installing sury PHP repo
9999
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
100100
wget https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
101101
apt-key add /tmp/php_signing.key
@@ -110,17 +110,17 @@ if [ "$type" = "ubuntu" ]; then
110110
add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
111111
fi
112112

113-
# Installing hestia repo
113+
# Installing HestiaCP repo
114114
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
115115
wget https://gpg.hestiacp.com/deb_signing.key -O deb_signing.key
116116
apt-key add deb_signing.key
117117

118-
# Remove vesta packages
119-
echo "Remove VestaCP packages..."
118+
# Remove Vesta packages
119+
echo "Removing VestaCP packages..."
120120
systemctl stop vesta
121121
apt-get -qq remove vesta vesta-nginx vesta-php vesta-ioncube vesta-softaculous -y > /dev/null 2>&1
122122

123-
# Clear up softaculous
123+
# Remove Softaculous
124124
rm -fr /usr/local/vesta/softaculous
125125
sed -i '/SOFTACULOUS/d' /usr/local/vesta/conf/vesta.conf
126126

@@ -129,13 +129,13 @@ 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
132+
# Install Hestia packages
133133
echo "Update System Repository and install HestiaCP Packages..."
134134
apt-get -qq update
135135
apt-get -qq upgrade -y > /dev/null 2>&1
136136
apt-get -qq install hestia hestia-nginx hestia-php -y > /dev/null 2>&1
137137

138-
# Add changed configuration files
138+
# Add modified configuration files
139139
echo "export HESTIA='$HESTIA'" >> /etc/profile.d/hestia.sh
140140

141141
rm /etc/sudoers.d/admin
@@ -157,7 +157,7 @@ sed -i 's/vesta/hestia/g' /etc/roundcube/config.inc.php
157157
rm /etc/logrotate.d/vesta
158158
cp -f $hestiacp/logrotate/vesta /etc/logrotate.d/hestia
159159

160-
# Restart hestia service once
160+
# Restart Hestia service
161161
systemctl restart hestia
162162

163163
# Create compatiblity symlinks
@@ -167,5 +167,5 @@ ln -s $HESTIA/conf/hestia.conf /usr/local/vesta/conf/vesta.conf
167167
# Update firewall rules
168168
$HESTIA/bin/v-update-firewall
169169

170-
echo "Migration is finished, you're running now HestiaCP instead VestaCP."
171-
echo "Please contact us if you've any troubles using our forum: https://forum.hestiacp.com"
170+
echo "Migration has finished successfully! You are now running HestiaCP instead of VestaCP."
171+
echo "Please contact us in case you face any issues, by using our forum: https://forum.hestiacp.com"

0 commit comments

Comments
 (0)