11#! /bin/bash
22
3- # Vesta Ubuntu installer v.05
3+ # Hestia Ubuntu 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=' ubuntu'
1313VESTA=' /usr/local/vesta'
1414memory=$( grep ' MemTotal' /proc/meminfo | tr ' ' ' \n' | grep [0-9])
@@ -28,8 +28,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
2828 ntpdate php-cgi php-common php-curl php-fpm phpmyadmin php-mysql
2929 phppgadmin php-pgsql postgresql postgresql-contrib proftpd-basic quota
3030 roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
31- sudo vesta vesta-ioncube vesta-nginx vesta-php vesta-softaculous
32- vim-common vsftpd webalizer whois zip"
31+ sudo vesta vesta-nginx vesta-php vim-common vsftpd webalizer whois zip"
3332
3433# Fix for old releases
3534if [[ ${release: 0: 2} -lt 16 ]]; then
@@ -56,7 +55,6 @@ help() {
5655 -t, --spamassassin Install SpamAssassin [yes|no] default: yes
5756 -i, --iptables Install Iptables [yes|no] default: yes
5857 -b, --fail2ban Install Fail2ban [yes|no] default: yes
59- -o, --softaculous Install Softaculous [yes|no] default: yes
6058 -q, --quota Filesystem Quota [yes|no] default: no
6159 -l, --lang Default language default: en
6260 -y, --interactive Interactive install [yes|no] default: yes
@@ -66,7 +64,7 @@ help() {
6664 -f, --force Force installation
6765 -h, --help Print this help
6866
69- Example: bash $0 -e demo@vestacp .com -p p4ssw0rd --apache no --phpfpm yes"
67+ Example: bash $0 -e demo@hestiacp .com -p p4ssw0rd --apache no --phpfpm yes"
7068 exit 1
7169}
7270
@@ -143,7 +141,6 @@ for arg; do
143141 --spamassassin) args=" ${args} -t " ;;
144142 --iptables) args=" ${args} -i " ;;
145143 --fail2ban) args=" ${args} -b " ;;
146- --softaculous) args=" ${args} -o " ;;
147144 --remi) args=" ${args} -r " ;;
148145 --quota) args=" ${args} -q " ;;
149146 --lang) args=" ${args} -l " ;;
@@ -178,7 +175,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
178175 i) iptables=$OPTARG ;; # Iptables
179176 b) fail2ban=$OPTARG ;; # Fail2ban
180177 r) remi=$OPTARG ;; # Remi repo
181- o) softaculous=$OPTARG ;; # Softaculous plugin
182178 q) quota=$OPTARG ;; # FS Quota
183179 l) lang=$OPTARG ;; # Language
184180 y) interactive=$OPTARG ;; # Interactive install
212208fi
213209set_default_value ' iptables' ' yes'
214210set_default_value ' fail2ban' ' yes'
215- set_default_value ' softaculous' ' yes'
216211set_default_value ' quota' ' no'
217212set_default_value ' interactive' ' yes'
218213set_default_lang ' en'
@@ -254,8 +249,8 @@ if [ ! -e '/usr/bin/wget' ]; then
254249fi
255250
256251# Checking repository availability
257- wget -q " c.vestacp .com/deb_signing.key" -O /dev/null
258- check_result $? " No access to Vesta repository"
252+ wget -q " c.hestiacp .com/deb_signing.key" -O /dev/null
253+ check_result $? " No access to Hestia repository"
259254
260255# Checking installed packages
261256tmpfile=$( mktemp -p /tmp)
289284# Printing nice ASCII logo
290285clear
291286echo
292- echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_| '
293- echo ' _| _| _| _| _ | _| _| '
294- echo ' _| _| _|_|_| _|_ | _| _|_|_|_ |'
295- echo ' _| _ | _| _| _| _| _| '
296- echo ' _| _ |_|_|_| _ |_|_| _| _| _| '
287+ echo ' _ _ _ _ ____ ____ '
288+ echo ' | | | | ___ ___| |_(_) __ _ / ___ | _ \ '
289+ echo ' | | _| |/ _ \/ __| __| |/ _` | | | |_) |'
290+ echo ' | _ | __/\__ \ | _| | ( _| | |___| __/ '
291+ echo ' | _| |_|\___||___/\__ |_|\__,_|\____| _| '
297292echo
298- echo ' Vesta Control Panel'
293+ echo ' Hestia Control Panel'
299294echo -e " \n\n"
300295
301296echo ' The following software will be installed on your system:'
@@ -455,7 +450,7 @@ wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
455450apt-key add /tmp/nginx_signing.key
456451
457452# Installing vesta repo
458- echo " deb http://$RHOST /$codename / $codename vesta " > $apt /vesta .list
453+ echo " deb http://$RHOST / $codename main " > $apt /hestia .list
459454wget $CHOST /deb_signing.key -O deb_signing.key
460455apt-key add deb_signing.key
461456
@@ -611,9 +606,6 @@ if [ "$postgresql" = 'no' ]; then
611606 software=$( echo " $software " | sed -e ' s/php-pgsql//' )
612607 software=$( echo " $software " | sed -e ' s/phppgadmin//' )
613608fi
614- if [ " $softaculous " = ' no' ]; then
615- software=$( echo " $software " | sed -e ' s/vesta-softaculous//' )
616- fi
617609if [ " $iptables " = ' no' ] || [ " $fail2ban " = ' no' ]; then
618610 software=$( echo " $software " | sed -e ' s/fail2ban//' )
619611fi
@@ -814,7 +806,7 @@ $VESTA/bin/v-change-sys-hostname $servername 2>/dev/null
814806
815807# Generating SSL certificate
816808$VESTA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
817- ' San Francisco' ' Vesta Control Panel' ' IT' > /tmp/vst.pem
809+ ' San Francisco' ' Hestia Control Panel' ' IT' > /tmp/vst.pem
818810
819811# Parsing certificate file
820812crt_end=$( grep -n " END CERTIFICATE-" /tmp/vst.pem | cut -f 1 -d:)
@@ -1226,7 +1218,7 @@ if [ "$iptables" = 'yes' ]; then
12261218fi
12271219
12281220# Get public IP
1229- pub_ip=$( curl -s vestacp .com/what-is-my-ip/)
1221+ pub_ip=$( curl -s hestiaacp .com/what-is-my-ip/)
12301222if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
12311223 echo " $VESTA /bin/v-update-sys-ip" >> /etc/rc.local
12321224 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
@@ -1273,11 +1265,6 @@ if [ "$quota" = 'yes' ]; then
12731265 $VESTA /bin/v-add-sys-quota
12741266fi
12751267
1276- # Enabling softaculous plugin
1277- if [ " $softaculous " = ' yes' ]; then
1278- $VESTA /bin/v-add-vesta-softaculous
1279- fi
1280-
12811268# Starting Vesta service
12821269update-rc.d vesta defaults
12831270service vesta start
@@ -1295,8 +1282,8 @@ $VESTA/bin/v-add-cron-vesta-autoupdate
12951282# Vesta Access Info #
12961283# ----------------------------------------------------------#
12971284
1298- # Sending install notification to vestacp .com
1299- wget vestacp .com/notify/? $codename -O /dev/null -q
1285+ # Sending install notification to hestiacp .com
1286+ wget hestiacp .com/notify/? os= $os \& version= $release -O /dev/null -q
13001287
13011288# Comparing hostname and IP
13021289host_ip=$( host $servername | head -n 1 | awk ' {print $NF}' )
@@ -1306,32 +1293,32 @@ fi
13061293
13071294# Sending notification to admin email
13081295echo -e " Congratulations, you have just successfully installed \
1309- Vesta Control Panel
1296+ Hestia Control Panel
13101297
13111298 https://$ip :8083
13121299 username: admin
13131300 password: $vpass
13141301
1315- We hope that you enjoy your installation of Vesta . Please \
1302+ We hope that you enjoy your installation of Hestia . Please \
13161303feel free to contact us anytime if you have any questions.
13171304Thank you.
13181305
13191306--
13201307Sincerely yours
1321- vestacp .com team
1308+ HestiaCP .com team
13221309" > $tmpfile
13231310
13241311send_mail=" $VESTA /web/inc/mail-wrapper.php"
1325- cat $tmpfile | $send_mail -s " Vesta Control Panel" $email
1312+ cat $tmpfile | $send_mail -s " Hestia Control Panel" $email
13261313
13271314# Congrats
13281315echo ' ======================================================='
13291316echo
1330- echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_| '
1331- echo ' _| _| _| _| _| _ | _| '
1332- echo ' _| _| _|_|_| _|_ | _| _|_|_|_| '
1333- echo ' _| _ | _| _| _| _| _| '
1334- echo ' _| _ |_|_|_| _ |_|_| _| _| _| '
1317+ echo ' _ _ _ _ ____ ____ '
1318+ echo ' | | | | ___ ___| |_(_) __ _ / ___ | _ \ '
1319+ echo ' | | _| |/ _ \/ __| __| |/ _` | | | |_) | '
1320+ echo ' | _ | __/\__ \ | _| | ( _| | |___| __/ '
1321+ echo ' | _| |_|\___||___/\__ |_|\__,_|\____| _| '
13351322echo
13361323echo
13371324cat $tmpfile
0 commit comments