Skip to content

Commit 5e4dc4b

Browse files
committed
Fix some missing vars and add softaculous remove part.
1 parent 86469e0 commit 5e4dc4b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

install/hst-migration.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
HESTIA="/usr/local/hestia"
1313
os=$(head -n1 /etc/issue | cut -f 1 -d ' ')
1414
codename=$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))
15+
apt="/etc/apt/sources.list.d"
1516

1617
# Am I root?
1718
if [ "x$(id -u)" != 'x0' ]; then
@@ -34,15 +35,14 @@ fi
3435

3536
# Check if Vesta is installed
3637
if [ -f /usr/local/vesta/conf/vesta.conf ]; then
37-
echo "Vesta exists"
3838
source /usr/local/vesta/conf/vesta.conf
3939
else
4040
echo "Vesta not found, stopping here."
4141
exit 1
4242
fi
4343

4444
# Check the Vesta Version
45-
if [ ! "$VESRION" = "0.9.8" ]; then
45+
if [ ! "$VERSION" = "0.9.8" ]; then
4646
echo "Wrong Vesta Version, stopping here."
4747
exit 1
4848
fi
@@ -75,15 +75,21 @@ apt-key add deb_signing.key
7575

7676
# Remove vesta packages
7777
echo "Remove VestaCP packages..."
78-
apt-get -qq remove vesta vesta-nginx vesta-php -y
78+
apt-get -qq remove vesta vesta-nginx vesta-php vesta-ioncube vesta-softaculous -y
79+
80+
# Clear up softaculous
81+
rm -fr /usr/local/vesta/softaculous
82+
sed -i '/SOFTACULOUS/d' /usr/local/vesta/conf/vesta.conf
7983

8084
# Move Vesta to Hestia Folder
8185
mv /usr/local/vesta $HESTIA
86+
mv $HESTIA/conf/vesta.conf $HESTIA/conf/hestia.conf
8287

8388
# Install hestia packages
8489
echo "Update System Repository and install HestiaCP Packages..."
8590
apt-get -qq update
86-
apt-get -qq install hestia hestia-nginx hestia-php
91+
apt-get -qq upgrade -y
92+
apt-get -qq install hestia hestia-nginx hestia-php -y
8793

8894
# Restart hestia service once
8995
systemctl restart hestia

0 commit comments

Comments
 (0)