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;
2828fi
2929
30- # Detect Codename
30+ # Detect codename
3131if [ " $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)
5656 exit 1
5757fi
5858
59- # Check the Vesta Version
59+ # Check current Vesta version
6060if [ ! " $VERSION " = " 0.9.8" ]; then
61- echo " Wrong Vesta Version , stopping here."
61+ echo " Wrong Vesta version , stopping here."
6262 exit 1
6363fi
6464
65- # Inform abouot and ask to proceed migration.
65+ # Inform user and request confirmation for migration
6666loop=1
6767while [ " $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"
8989fi
9090
91- # Remove Vesta Repository if it exists.
91+ # Remove Vesta Repository if it exists
9292echo " Removeing VestaCP Repository..."
9393if [ -f /usr/local/vesta/conf/vesta.conf ]; then
9494 rm /etc/apt/sources.list.d/vesta.list*
9595fi
9696
9797if [ " $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
111111fi
112112
113- # Installing hestia repo
113+ # Installing HestiaCP repo
114114echo " deb https://$RHOST / $codename main" > $apt /hestia.list
115115wget https://gpg.hestiacp.com/deb_signing.key -O deb_signing.key
116116apt-key add deb_signing.key
117117
118- # Remove vesta packages
119- echo " Remove VestaCP packages..."
118+ # Remove Vesta packages
119+ echo " Removing VestaCP packages..."
120120systemctl stop vesta
121121apt-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
124124rm -fr /usr/local/vesta/softaculous
125125sed -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
129129mv /usr/local/vesta $HESTIA
130130mv $HESTIA /conf/vesta.conf $HESTIA /conf/hestia.conf
131131
132- # Install hestia packages
132+ # Install Hestia packages
133133echo " Update System Repository and install HestiaCP Packages..."
134134apt-get -qq update
135135apt-get -qq upgrade -y > /dev/null 2>&1
136136apt-get -qq install hestia hestia-nginx hestia-php -y > /dev/null 2>&1
137137
138- # Add changed configuration files
138+ # Add modified configuration files
139139echo " export HESTIA='$HESTIA '" >> /etc/profile.d/hestia.sh
140140
141141rm /etc/sudoers.d/admin
@@ -157,7 +157,7 @@ sed -i 's/vesta/hestia/g' /etc/roundcube/config.inc.php
157157rm /etc/logrotate.d/vesta
158158cp -f $hestiacp /logrotate/vesta /etc/logrotate.d/hestia
159159
160- # Restart hestia service once
160+ # Restart Hestia service
161161systemctl 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