|
12 | 12 | HESTIA="/usr/local/hestia" |
13 | 13 | os=$(head -n1 /etc/issue | cut -f 1 -d ' ') |
14 | 14 | codename=$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \)) |
| 15 | +apt="/etc/apt/sources.list.d" |
15 | 16 |
|
16 | 17 | # Am I root? |
17 | 18 | if [ "x$(id -u)" != 'x0' ]; then |
|
34 | 35 |
|
35 | 36 | # Check if Vesta is installed |
36 | 37 | if [ -f /usr/local/vesta/conf/vesta.conf ]; then |
37 | | - echo "Vesta exists" |
38 | 38 | source /usr/local/vesta/conf/vesta.conf |
39 | 39 | else |
40 | 40 | echo "Vesta not found, stopping here." |
41 | 41 | exit 1 |
42 | 42 | fi |
43 | 43 |
|
44 | 44 | # Check the Vesta Version |
45 | | -if [ ! "$VESRION" = "0.9.8" ]; then |
| 45 | +if [ ! "$VERSION" = "0.9.8" ]; then |
46 | 46 | echo "Wrong Vesta Version, stopping here." |
47 | 47 | exit 1 |
48 | 48 | fi |
@@ -75,15 +75,21 @@ apt-key add deb_signing.key |
75 | 75 |
|
76 | 76 | # Remove vesta packages |
77 | 77 | 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 |
79 | 83 |
|
80 | 84 | # Move Vesta to Hestia Folder |
81 | 85 | mv /usr/local/vesta $HESTIA |
| 86 | +mv $HESTIA/conf/vesta.conf $HESTIA/conf/hestia.conf |
82 | 87 |
|
83 | 88 | # Install hestia packages |
84 | 89 | echo "Update System Repository and install HestiaCP Packages..." |
85 | 90 | 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 |
87 | 93 |
|
88 | 94 | # Restart hestia service once |
89 | 95 | systemctl restart hestia |
|
0 commit comments