@@ -312,35 +312,35 @@ mkdir -p $hst_backups
312312
313313# Checking ntpdate
314314if [ ! -e ' /usr/sbin/ntpdate' ]; then
315- echo " (*) Installing ntpdate..."
315+ echo " [ * ] Installing ntpdate..."
316316 apt-get -y install ntpdate >> $LOG
317317 check_result $? " Can't install ntpdate"
318318fi
319319
320320# Checking wget
321321if [ ! -e ' /usr/bin/wget' ]; then
322- echo " (*) Installing wget..."
322+ echo " [ * ] Installing wget..."
323323 apt-get -y install wget >> $LOG
324324 check_result $? " Can't install wget"
325325fi
326326
327327# Checking dirmngr
328328if [ ! -e ' /usr/bin/dirmngr' ]; then
329- echo " (*) Installing dirmngr..."
329+ echo " [ * ] Installing dirmngr..."
330330 apt-get -y install dirmngr >> $LOG
331331 check_result $? " Can't install dirmngr"
332332fi
333333
334334# Check if apt-transport-https is installed
335335if [ ! -e ' /usr/lib/apt/methods/https' ]; then
336- echo " (*) Installing apt-transport-https..."
336+ echo " [ * ] Installing apt-transport-https..."
337337 apt-get -y install apt-transport-https >> $LOG
338338 check_result $? " Can't install apt-transport-https"
339339fi
340340
341341# Check if gnupg or gnupg2 is installed
342342if [ ! -e ' /usr/lib/gnupg2' ] || [ ! -e ' /usr/lib/gnupg' ]; then
343- echo " (*) Installing gnupg2..."
343+ echo " [ * ] Installing gnupg2..."
344344 apt-get -y install gnupg2 >> $LOG
345345 check_result $? " Can't install gnupg2"
346346fi
@@ -613,29 +613,29 @@ echo
613613
614614# Installing Nginx repo
615615if [ " $nginx " = ' yes' ]; then
616- echo " (*) NGINX"
616+ echo " [ * ] NGINX"
617617 echo " deb [arch=amd64] http://nginx.org/packages/mainline/$VERSION / $codename nginx" > $apt /nginx.list
618618 wget --quiet http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
619619 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev/null 2>&1
620620fi
621621
622622# Installing sury PHP repo
623- echo " (*) PHP"
623+ echo " [ * ] PHP"
624624echo " deb https://packages.sury.org/php/ $codename main" > $apt /php.list
625625wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
626626APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
627627
628628# Installing sury Apache2 repo
629629if [ " $apache " = ' yes' ]; then
630- echo " (*) Apache2"
630+ echo " [ * ] Apache2"
631631 echo " deb https://packages.sury.org/apache2/ $codename main" > $apt /apache2.list
632632 wget --quiet https://packages.sury.org/apache2/apt.gpg -O /tmp/apache2_signing.key
633633 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/apache2_signing.key > /dev/null 2>&1
634634fi
635635
636636# Installing MariaDB repo
637637if [ " $mysql " = ' yes' ]; then
638- echo " (*) MariaDB"
638+ echo " [ * ] MariaDB"
639639 echo " deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/$mariadb_v /$VERSION $codename main" > $apt /mariadb.list
640640 if [ " $release " -eq 8 ]; then
641641 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CBCB082A1BB943DB > /dev/null 2>&1
@@ -650,13 +650,13 @@ if [ "$release" -eq 8 ]; then
650650fi
651651
652652# Installing HestiaCP repo
653- echo " (*) Hestia Control Panel"
653+ echo " [ * ] Hestia Control Panel"
654654echo " deb https://$RHOST / $codename main" > $apt /hestia.list
655655APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
656656
657657# Installing PostgreSQL repo
658658if [ " $postgresql " = ' yes' ]; then
659- echo " (*) PostgreSQL"
659+ echo " [ * ] PostgreSQL"
660660 echo " deb http://apt.postgresql.org/pub/repos/apt/ $codename -pgdg main" > $apt /postgresql.list
661661 wget --quiet https://www.postgresql.org/media/keys/ACCC4CF8.asc -O /tmp/psql_signing.key
662662 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/psql_signing.key > /dev/null 2>&1
888888
889889# Install Hestia packages from local folder
890890if [ ! -z " $withdebs " ] && [ -d " $withdebs " ]; then
891- echo " (*) Installing local package files..."
891+ echo " [ * ] Installing local package files..."
892892 echo " - hestia core package"
893893 dpkg -i $withdebs /hestia_* .deb > /dev/null 2>&1
894894
@@ -917,7 +917,7 @@ rm -f /usr/sbin/policy-rc.d
917917# ----------------------------------------------------------#
918918
919919
920- echo " (*) Configuring system settings..."
920+ echo " [ * ] Configuring system settings..."
921921# Enable SSH password authentication
922922sed -i " s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
923923
979979# Configure Hestia #
980980# ----------------------------------------------------------#
981981
982- echo " (*) Configuring Hestia Control Panel..."
982+ echo " [ * ] Configuring Hestia Control Panel..."
983983# Installing sudo configuration
984984mkdir -p /etc/sudoers.d
985985cp -f $HESTIA_INSTALL_DIR /sudo/admin /etc/sudoers.d/
@@ -1151,7 +1151,7 @@ cp -rf $HESTIA_INSTALL_DIR/firewall $HESTIA/data/
11511151$HESTIA /bin/v-change-sys-hostname $servername > /dev/null 2>&1
11521152
11531153# Generating SSL certificate
1154- echo " (*) Generating default self-signed SSL certificate..."
1154+ echo " [ * ] Generating default self-signed SSL certificate..."
11551155$HESTIA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
11561156 ' San Francisco' ' Hestia Control Panel' ' IT' > /tmp/hst.pem
11571157
@@ -1161,7 +1161,7 @@ key_start=$(grep -n "BEGIN RSA" /tmp/hst.pem |cut -f 1 -d:)
11611161key_end=$( grep -n " END RSA" /tmp/hst.pem | cut -f 1 -d:)
11621162
11631163# Adding SSL certificate
1164- echo " (*) Adding SSL certificate to Hestia Control Panel..."
1164+ echo " [ * ] Adding SSL certificate to Hestia Control Panel..."
11651165cd $HESTIA /ssl
11661166sed -n " 1,${crt_end} p" /tmp/hst.pem > certificate.crt
11671167sed -n " $key_start ,${key_end} p" /tmp/hst.pem > certificate.key
@@ -1177,7 +1177,7 @@ cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
11771177# ----------------------------------------------------------#
11781178
11791179if [ " $nginx " = ' yes' ]; then
1180- echo " (*) Configuring NGINX..."
1180+ echo " [ * ] Configuring NGINX..."
11811181 rm -f /etc/nginx/conf.d/* .conf
11821182 cp -f $HESTIA_INSTALL_DIR /nginx/nginx.conf /etc/nginx/
11831183 cp -f $HESTIA_INSTALL_DIR /nginx/status.conf /etc/nginx/conf.d/
12111211# ----------------------------------------------------------#
12121212
12131213if [ " $apache " = ' yes' ]; then
1214- echo " (*) Configuring Apache Web Server..."
1214+ echo " [ * ] Configuring Apache Web Server..."
12151215
12161216 mkdir -p /etc/apache2/conf.d
12171217 mkdir -p /etc/apache2/conf.d/domains
@@ -1274,13 +1274,13 @@ if [ "$multiphp" = 'yes' ] ; then
12741274 for v in " ${multiphp_v[@]} " ; do
12751275 cp -r /etc/php/$v / /root/hst_install_backups/php$v /
12761276 rm -f /etc/php/$v /fpm/pool.d/*
1277- echo " (*) Install PHP version $v ..."
1277+ echo " [ * ] Install PHP version $v ..."
12781278 $HESTIA /bin/v-add-web-php " $v " > /dev/null 2>&1
12791279 done
12801280fi
12811281
12821282if [ " $phpfpm " = ' yes' ]; then
1283- echo " (*) Configuring PHP-FPM..."
1283+ echo " [ * ] Configuring PHP-FPM..."
12841284 $HESTIA /bin/v-add-web-php " $fpm_v " > /dev/null 2>&1
12851285 cp -f $HESTIA_INSTALL_DIR /php-fpm/www.conf /etc/php/$fpm_v /fpm/pool.d/www.conf
12861286 update-rc.d php$fpm_v -fpm defaults > /dev/null 2>&1
12941294# Configure PHP #
12951295# ----------------------------------------------------------#
12961296
1297- echo " (*) Configuring PHP..."
1297+ echo " [ * ] Configuring PHP..."
12981298ZONE=$( timedatectl > /dev/null 2>&1 | grep Timezone| awk ' {print $2}' )
12991299if [ -z " $ZONE " ]; then
13001300 ZONE=' UTC'
@@ -1316,7 +1316,7 @@ chmod 755 /etc/cron.daily/php-session-cleanup
13161316# ----------------------------------------------------------#
13171317
13181318if [ " $vsftpd " = ' yes' ]; then
1319- echo " (*) Configuring Vsftpd server..."
1319+ echo " [ * ] Configuring Vsftpd server..."
13201320 cp -f $HESTIA_INSTALL_DIR /vsftpd/vsftpd.conf /etc/
13211321 touch /var/log/vsftpd.log
13221322 chown root:adm /var/log/vsftpd.log
13361336# ----------------------------------------------------------#
13371337
13381338if [ " $proftpd " = ' yes' ]; then
1339- echo " (*) Configuring ProFTPD server..."
1339+ echo " [ * ] Configuring ProFTPD server..."
13401340 echo " 127.0.0.1 $servername " >> /etc/hosts
13411341 cp -f $HESTIA_INSTALL_DIR /proftpd/proftpd.conf /etc/proftpd/
13421342 update-rc.d proftpd defaults > /dev/null 2>&1
13501350# ----------------------------------------------------------#
13511351
13521352if [ " $mysql " = ' yes' ]; then
1353- echo " (*) Configuring MariaDB database server..."
1353+ echo " [ * ] Configuring MariaDB database server..."
13541354 mycnf=" my-small.cnf"
13551355 if [ $memory -gt 1200000 ]; then
13561356 mycnf=" my-medium.cnf"
13961396
13971397if [ " $mysql " = ' yes' ]; then
13981398 # Display upgrade information
1399- echo " (*) Installing phpMyAdmin version v$pma_v ..."
1399+ echo " [ * ] Installing phpMyAdmin version v$pma_v ..."
14001400
14011401 # Download latest phpmyadmin release
14021402 wget --quiet https://files.phpmyadmin.net/phpMyAdmin/$pma_v /phpMyAdmin-$pma_v -all-languages.tar.gz
14361436# ----------------------------------------------------------#
14371437
14381438if [ " $postgresql " = ' yes' ]; then
1439- echo " (*) Configuring PostgreSQL database server..."
1439+ echo " [ * ] Configuring PostgreSQL database server..."
14401440 ppass=$( gen_pass)
14411441 cp -f $HESTIA_INSTALL_DIR /postgresql/pg_hba.conf /etc/postgresql/* /main/
14421442 systemctl restart postgresql
14581458# ----------------------------------------------------------#
14591459
14601460if [ " $named " = ' yes' ]; then
1461- echo " (*) Configuring Bind DNS server..."
1461+ echo " [ * ] Configuring Bind DNS server..."
14621462 cp -f $HESTIA_INSTALL_DIR /bind/named.conf /etc/bind/
14631463 cp -f $HESTIA_INSTALL_DIR /bind/named.conf.options /etc/bind/
14641464 chown root:bind /etc/bind/named.conf
14901490# ----------------------------------------------------------#
14911491
14921492if [ " $exim " = ' yes' ]; then
1493- echo " (*) Configuring Exim mail server..."
1493+ echo " [ * ] Configuring Exim mail server..."
14941494 gpasswd -a Debian-exim mail > /dev/null 2>&1
14951495 cp -f $HESTIA_INSTALL_DIR /exim/exim4.conf.template /etc/exim4/
14961496 cp -f $HESTIA_INSTALL_DIR /exim/dnsbl.conf /etc/exim4/
15251525# ----------------------------------------------------------#
15261526
15271527if [ " $dovecot " = ' yes' ]; then
1528- echo " (*) Configuring Dovecot POP/IMAP mail server..."
1528+ echo " [ * ] Configuring Dovecot POP/IMAP mail server..."
15291529 gpasswd -a dovecot mail > /dev/null 2>&1
15301530 cp -rf $HESTIA_INSTALL_DIR /dovecot /etc/
15311531 cp -f $HESTIA_INSTALL_DIR /logrotate/dovecot /etc/logrotate.d/
@@ -1559,7 +1559,7 @@ if [ "$clamd" = 'yes' ]; then
15591559 /lib/systemd/system/clamav-daemon.service
15601560 systemctl daemon-reload
15611561 fi
1562- echo -ne " (*) Installing ClamAV anti-virus definitions... "
1562+ echo -ne " [ * ] Installing ClamAV anti-virus definitions... "
15631563 /usr/bin/freshclam >> $LOG &
15641564 BACK_PID=$!
15651565 spin_i=1
15781578# ----------------------------------------------------------#
15791579
15801580if [ " $spamd " = ' yes' ]; then
1581- echo " (*) Configuring SpamAssassin..."
1581+ echo " [ * ] Configuring SpamAssassin..."
15821582 update-rc.d spamassassin defaults > /dev/null 2>&1
15831583 sed -i " s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
15841584 systemctl start spamassassin >> $LOG
15951595# ----------------------------------------------------------#
15961596
15971597if [ " $dovecot " = ' yes' ] && [ " $exim " = ' yes' ] && [ " $mysql " = ' yes' ]; then
1598- echo " (*) Configuring Roundcube webmail client..."
1598+ echo " [ * ] Configuring Roundcube webmail client..."
15991599 cp -f $HESTIA_INSTALL_DIR /roundcube/main.inc.php /etc/roundcube/config.inc.php
16001600 cp -f $HESTIA_INSTALL_DIR /roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
16011601 cp -f $HESTIA_INSTALL_DIR /roundcube/config.inc.php /etc/roundcube/plugins/password/
16771677# ----------------------------------------------------------#
16781678
16791679if [ " $fail2ban " = ' yes' ]; then
1680- echo " (*) Configuring fail2ban access monitor..."
1680+ echo " [ * ] Configuring fail2ban access monitor..."
16811681 cp -rf $HESTIA_INSTALL_DIR /fail2ban /etc/
16821682 if [ " $dovecot " = ' no' ]; then
16831683 fline=$( cat /etc/fail2ban/jail.local | grep -n dovecot-iptables -A 2)
@@ -1865,7 +1865,7 @@ $HESTIA/bin/v-change-sys-port $port > /dev/null 2>&1
18651865$HESTIA /bin/v-change-sys-theme ' default'
18661866
18671867# Update remaining packages since repositories have changed
1868- echo -ne " (*) Installing remaining software updates..."
1868+ echo -ne " [ * ] Installing remaining software updates..."
18691869apt-get -qq update
18701870apt-get -y upgrade >> $LOG &
18711871BACK_PID=$!
@@ -1882,7 +1882,7 @@ chown admin:admin $HESTIA/data/sessions
18821882# Configure File Manager #
18831883# ----------------------------------------------------------#
18841884
1885- echo " (*) Configuring File Manager..."
1885+ echo " [ * ] Configuring File Manager..."
18861886source $HESTIA_INSTALL_DIR /filemanager/install-fm.sh > /dev/null 2>&1
18871887
18881888
@@ -1945,7 +1945,7 @@ rm -f $tmpfile
19451945# Add welcome message to notification panel
19461946$HESTIA /bin/v-add-user-notification admin ' Welcome to Hestia Control Panel!' ' <br>You are now ready to begin <a href="/add/user/">adding user accounts</a> and <a href="/add/web/">domains</a>. For help and assistance, view the <a href="https://docs.hestiacp.com/" target="_new">documentation</a> or visit our <a href="https://forum.hestiacp.com/" target="_new">user forum</a>.<br><br>Please report any bugs or issues via <a href="https://github.com/hestiacp/hestiacp/issues" target="_new"><i class="fab fa-github"></i> GitHub</a> or e-mail <a href="mailto:info@hestiacp.com?Subject="[' $new_version ' ] Bug Report: ">info@hestiacp.com</a>.<br><br><b>Have a wonderful day!</b><br><br><i class="fas fa-heart status-icon red"></i> The Hestia Control Panel development team'
19471947
1948- echo " (!) IMPORTANT: You must logout or restart the server before continuing."
1948+ echo " [ ! ] IMPORTANT: You must logout or restart the server before continuing."
19491949echo " "
19501950if [ " $interactive " = ' yes' ]; then
19511951 echo -n " Do you want to reboot now? [Y/N] "
0 commit comments