11#! /bin/bash
22
3- # Vesta Debian installer v.05
3+ # Hestia Debian installer v.06
44
55# ----------------------------------------------------------#
66# Variables&Functions #
77# ----------------------------------------------------------#
88export PATH=$PATH :/sbin
99export DEBIAN_FRONTEND=noninteractive
10- RHOST=' apt.vestacp .com'
11- CHOST=' c.vestacp .com'
10+ RHOST=' apt.hestiacp .com'
11+ CHOST=' c.hestiacp .com'
1212VERSION=' debian'
1313VESTA=' /usr/local/vesta'
1414memory=$( grep ' MemTotal' /proc/meminfo | tr ' ' ' \n' | grep [0-9])
1515arch=$( uname -i)
1616os=' debian'
1717release=$( cat /etc/debian_version| grep -o [0-9]| head -n1)
1818codename=" $( cat /etc/os-release | grep VERSION= | cut -f 2 -d \( | cut -f 1 -d \) ) "
19- vestacp=" http ://$CHOST /$VERSION /$release "
19+ vestacp=" https ://$CHOST /$VERSION /$release "
2020
2121if [ " $release " -eq 9 ]; then
2222 software=" nginx apache2 apache2-utils apache2-suexec-custom
@@ -29,7 +29,7 @@ if [ "$release" -eq 9 ]; then
2929 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
3030 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
3131 bsdmainutils cron vesta vesta-nginx vesta-php expect libmail-dkim-perl
32- unrar-free vim-common vesta-ioncube vesta-softaculous net-tools"
32+ unrar-free vim-common net-tools"
3333elif [ " $release " -eq 8 ]; then
3434 software=" nginx apache2 apache2-utils apache2.2-common
3535 apache2-suexec-custom libapache2-mod-ruid2
@@ -42,7 +42,7 @@ elif [ "$release" -eq 8 ]; then
4242 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
4343 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
4444 bsdmainutils cron vesta vesta-nginx vesta-php expect libmail-dkim-perl
45- unrar-free vim-common vesta-ioncube vesta-softaculous net-tools"
45+ unrar-free vim-common net-tools"
4646else
4747 software=" nginx apache2 apache2-utils apache2.2-common
4848 apache2-suexec-custom libapache2-mod-ruid2
5555 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
5656 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
5757 bsdmainutils cron vesta vesta-nginx vesta-php expect unrar-free
58- vim-common vesta-ioncube vesta-softaculous net-tools"
58+ vim-common net-tools"
5959fi
6060
6161# Defining help function
@@ -76,7 +76,6 @@ help() {
7676 -t, --spamassassin Install SpamAssassin [yes|no] default: yes
7777 -i, --iptables Install Iptables [yes|no] default: yes
7878 -b, --fail2ban Install Fail2ban [yes|no] default: yes
79- -o, --softaculous Install Softaculous [yes|no] default: yes
8079 -q, --quota Filesystem Quota [yes|no] default: no
8180 -l, --lang Default language default: en
8281 -y, --interactive Interactive install [yes|no] default: yes
@@ -86,7 +85,7 @@ help() {
8685 -f, --force Force installation
8786 -h, --help Print this help
8887
89- Example: bash $0 -e demo@vestacp .com -p p4ssw0rd --apache no --phpfpm yes"
88+ Example: bash $0 -e demo@hestiacp .com -p p4ssw0rd --apache no --phpfpm yes"
9089 exit 1
9190}
9291
@@ -164,7 +163,6 @@ for arg; do
164163 --iptables) args=" ${args} -i " ;;
165164 --fail2ban) args=" ${args} -b " ;;
166165 --remi) args=" ${args} -r " ;;
167- --softaculous) args=" ${args} -o " ;;
168166 --quota) args=" ${args} -q " ;;
169167 --lang) args=" ${args} -l " ;;
170168 --interactive) args=" ${args} -y " ;;
@@ -198,7 +196,6 @@ while getopts "a:n:w:v:j:k:m:g:d:x:z:c:t:i:b:r:o:q:l:y:s:e:p:fh" Option; do
198196 i) iptables=$OPTARG ;; # Iptables
199197 b) fail2ban=$OPTARG ;; # Fail2ban
200198 r) remi=$OPTARG ;; # Remi repo
201- o) softaculous=$OPTARG ;; # Softaculous plugin
202199 q) quota=$OPTARG ;; # FS Quota
203200 l) lang=$OPTARG ;; # Language
204201 y) interactive=$OPTARG ;; # Interactive install
232229fi
233230set_default_value ' iptables' ' yes'
234231set_default_value ' fail2ban' ' yes'
235- set_default_value ' softaculous' ' yes'
236232set_default_value ' quota' ' no'
237233set_default_value ' interactive' ' yes'
238234set_default_lang ' en'
@@ -274,7 +270,7 @@ if [ ! -e '/usr/bin/wget' ]; then
274270fi
275271
276272# Checking repository availability
277- wget -q " $vestacp /deb_signing.key" -O /dev/null
273+ wget -q " https://gpg.hestiacp.com /deb_signing.key" -O /dev/null
278274check_result $? " No access to Vesta repository"
279275
280276# Check installed packages
309305# Printing nice ascii aslogo
310306clear
311307echo
312- echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_| '
313- echo ' _| _| _| _| _ | _| _| '
314- echo ' _| _| _|_|_| _|_ | _| _|_|_|_ |'
315- echo ' _| _ | _| _| _| _| _| '
316- echo ' _| _ |_|_|_| _ |_|_| _| _| _| '
308+ echo ' _ _ _ _ ____ ____ '
309+ echo ' | | | | ___ ___| |_(_) __ _ / ___ | _ \ '
310+ echo ' | | _| |/ _ \/ __| __| |/ _` | | | |_) |'
311+ echo ' | _ | __/\__ \ | _| | ( _| | |___| __/ '
312+ echo ' | _| |_|\___||___/\__ |_|\__,_|\____| _| '
317313echo
318- echo ' Vesta Control Panel'
314+ echo ' Hestia Control Panel'
319315echo -e " \n\n"
320316
321317echo ' Following software will be installed on your system:'
@@ -474,8 +470,8 @@ wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
474470apt-key add /tmp/nginx_signing.key
475471
476472# Installing vesta repo
477- echo " deb http://$RHOST /$codename / $codename vesta " > $apt /vesta .list
478- wget $CHOST /deb_signing.key -O deb_signing.key
473+ echo " deb http://$RHOST / $codename main " > $apt /hestia .list
474+ wget https://gpg.hestiacp.com /deb_signing.key -O deb_signing.key
479475apt-key add deb_signing.key
480476
481477
@@ -617,9 +613,6 @@ if [ "$postgresql" = 'no' ]; then
617613 software=$( echo " $software " | sed -e ' s/php-pgsql//' )
618614 software=$( echo " $software " | sed -e ' s/phppgadmin//' )
619615fi
620- if [ " $softaculous " = ' no' ]; then
621- software=$( echo " $software " | sed -e ' s/vesta-softaculous//' )
622- fi
623616if [ " $iptables " = ' no' ] || [ " $fail2ban " = ' no' ]; then
624617 software=$( echo " $software " | sed -e ' s/fail2ban//' )
625618fi
@@ -1271,7 +1264,7 @@ if [ "$iptables" = 'yes' ]; then
12711264fi
12721265
12731266# Get public ip
1274- pub_ip=$( curl -s vestacp .com/what-is-my-ip/)
1267+ pub_ip=$( curl -s https://hestiacp .com/what-is-my-ip/)
12751268
12761269if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
12771270 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
@@ -1381,20 +1374,20 @@ Thank you.
13811374
13821375--
13831376Sincerely yours
1384- vestacp .com team
1377+ HestiaCP .com team
13851378" > $tmpfile
13861379
13871380send_mail=" $VESTA /web/inc/mail-wrapper.php"
1388- cat $tmpfile | $send_mail -s " Vesta Control Panel" $email
1381+ cat $tmpfile | $send_mail -s " Hestia Control Panel" $email
13891382
13901383# Congrats
13911384echo ' ======================================================='
13921385echo
1393- echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_| '
1394- echo ' _| _| _| _| _| _ | _| '
1395- echo ' _| _| _|_|_| _|_ | _| _|_|_|_| '
1396- echo ' _| _ | _| _| _| _| _| '
1397- echo ' _| _ |_|_|_| _ |_|_| _| _| _| '
1386+ echo ' _ _ _ _ ____ ____ '
1387+ echo ' | | | | ___ ___| |_(_) __ _ / ___ | _ \ '
1388+ echo ' | | _| |/ _ \/ __| __| |/ _` | | | |_) | '
1389+ echo ' | _ | __/\__ \ | _| | ( _| | |___| __/ '
1390+ echo ' | _| |_|\___||___/\__ |_|\__,_|\____| _| '
13981391echo
13991392echo
14001393cat $tmpfile
0 commit comments