Skip to content

Commit 5933db9

Browse files
author
Kristan Kenney
committed
Adjust installer formatting
1 parent 2f59eeb commit 5933db9

File tree

10 files changed

+139
-139
lines changed

10 files changed

+139
-139
lines changed

func/upgrade.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ upgrade_welcome_message() {
1818
echo " Version: $new_version "
1919
echo "========================================================================"
2020
echo
21-
echo "(!) IMPORTANT INFORMATION: "
21+
echo "[ ! ] IMPORTANT INFORMATION: "
2222
echo
2323
echo "Default configuration files and templates may be modified or replaced "
2424
echo "during the upgrade process. You may restore these files from: "
@@ -77,7 +77,7 @@ upgrade_start_routine() {
7777
#####################################################################
7878
release_branch_check=$(cat $HESTIA/conf/hestia.conf | grep RELEASE_BRANCH)
7979
if [ -z "$release_branch_check" ]; then
80-
echo "(*) Adding global release branch variable to system configuration..."
80+
echo "[ * ] Adding global release branch variable to system configuration..."
8181
$BIN/v-change-sys-config-value 'RELEASE_BRANCH' 'release'
8282
fi
8383

@@ -102,8 +102,8 @@ upgrade_start_routine() {
102102

103103
# Ensure that latest upgrade commands are processed if version is the same
104104
if [ $VERSION = "$new_version" ]; then
105-
echo "(!) The latest version of Hestia Control Panel is already installed."
106-
echo " Verifying configuration..."
105+
echo "[ ! ] The latest version of Hestia Control Panel is already installed."
106+
echo " Verifying configuration..."
107107
echo ""
108108
source $HESTIA/install/upgrade/versions/latest.sh
109109
VERSION="$new_version"
@@ -179,10 +179,10 @@ upgrade_phpmyadmin() {
179179

180180
pma_release_file=$(ls /usr/share/phpmyadmin/RELEASE-DATE-* 2>/dev/null |tail -n 1)
181181
if version_ge "${pma_release_file##*-}" "$pma_v"; then
182-
echo "(!) phpMyAdmin v${pma_release_file##*-} is already installed, skipping update..."
182+
echo "[ ! ] phpMyAdmin v${pma_release_file##*-} is already installed, skipping update..."
183183
else
184184
# Display upgrade information
185-
echo "(*) Upgrading phpMyAdmin to version v$pma_v..."
185+
echo "[ * ] Upgrading phpMyAdmin to version v$pma_v..."
186186
[ -d /usr/share/phpmyadmin ] || mkdir -p /usr/share/phpmyadmin
187187

188188
# Download latest phpMyAdmin release
@@ -215,7 +215,7 @@ upgrade_phpmyadmin() {
215215
}
216216

217217
update_php_templates() {
218-
echo "(*) Updating default PHP templates..."
218+
echo "[ * ] Updating default PHP templates..."
219219
# Update default template
220220
cp -f $HESTIA_INSTALL_DIR/templates/web/php-fpm/default.tpl \
221221
$HESTIA/data/templates/web/php-fpm/default.tpl
@@ -229,7 +229,7 @@ update_php_templates() {
229229
$HESTIA/data/templates/web/php-fpm/socket.tpl
230230

231231
for version in $($HESTIA/bin/v-list-sys-php plain); do
232-
echo "(*) Updating templates for PHP ${version}..."
232+
echo "[ * ] Updating templates for PHP ${version}..."
233233
cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
234234
$HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl;
235235
done
@@ -248,7 +248,7 @@ upgrade_set_version() {
248248

249249
upgrade_rebuild_users() {
250250
for user in $($HESTIA/bin/v-list-sys-users plain); do
251-
echo "(*) Rebuilding domains and account for user: $user..."
251+
echo "[ * ] Rebuilding domains and account for user: $user..."
252252
if [ ! -z "$WEB_SYSTEM" ]; then
253253
$BIN/v-rebuild-web-domains $user 'no' >/dev/null 2>&1
254254
fi
@@ -265,12 +265,12 @@ upgrade_restart_services() {
265265
# Refresh user interface theme
266266
if [ "$THEME" ]; then
267267
if [ "$THEME" != "default" ]; then
268-
echo "(*) Applying user interface updates..."
268+
echo "[ * ] Applying user interface updates..."
269269
$BIN/v-change-sys-theme $THEME
270270
fi
271271
fi
272272

273-
echo "(*) Restarting services..."
273+
echo "[ * ] Restarting services..."
274274
sleep 5
275275
if [ ! -z "$MAIL_SYSTEM" ]; then
276276
$BIN/v-restart-mail $restart

install/hst-install-debian.sh

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -312,35 +312,35 @@ mkdir -p $hst_backups
312312

313313
# Checking ntpdate
314314
if [ ! -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"
318318
fi
319319

320320
# Checking wget
321321
if [ ! -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"
325325
fi
326326

327327
# Checking dirmngr
328328
if [ ! -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"
332332
fi
333333

334334
# Check if apt-transport-https is installed
335335
if [ ! -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"
339339
fi
340340

341341
# Check if gnupg or gnupg2 is installed
342342
if [ ! -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"
346346
fi
@@ -613,29 +613,29 @@ echo
613613

614614
# Installing Nginx repo
615615
if [ "$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
620620
fi
621621

622622
# Installing sury PHP repo
623-
echo "(*) PHP"
623+
echo "[ * ] PHP"
624624
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
625625
wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
626626
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
627627

628628
# Installing sury Apache2 repo
629629
if [ "$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
634634
fi
635635

636636
# Installing MariaDB repo
637637
if [ "$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
650650
fi
651651

652652
# Installing HestiaCP repo
653-
echo "(*) Hestia Control Panel"
653+
echo "[ * ] Hestia Control Panel"
654654
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
655655
APT_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
658658
if [ "$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
@@ -888,7 +888,7 @@ echo
888888

889889
# Install Hestia packages from local folder
890890
if [ ! -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
922922
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
923923

@@ -979,7 +979,7 @@ fi
979979
# Configure Hestia #
980980
#----------------------------------------------------------#
981981

982-
echo "(*) Configuring Hestia Control Panel..."
982+
echo "[ * ] Configuring Hestia Control Panel..."
983983
# Installing sudo configuration
984984
mkdir -p /etc/sudoers.d
985985
cp -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:)
11611161
key_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..."
11651165
cd $HESTIA/ssl
11661166
sed -n "1,${crt_end}p" /tmp/hst.pem > certificate.crt
11671167
sed -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

11791179
if [ "$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/
@@ -1211,7 +1211,7 @@ fi
12111211
#----------------------------------------------------------#
12121212

12131213
if [ "$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
12801280
fi
12811281

12821282
if [ "$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
@@ -1294,7 +1294,7 @@ fi
12941294
# Configure PHP #
12951295
#----------------------------------------------------------#
12961296

1297-
echo "(*) Configuring PHP..."
1297+
echo "[ * ] Configuring PHP..."
12981298
ZONE=$(timedatectl > /dev/null 2>&1|grep Timezone|awk '{print $2}')
12991299
if [ -z "$ZONE" ]; then
13001300
ZONE='UTC'
@@ -1316,7 +1316,7 @@ chmod 755 /etc/cron.daily/php-session-cleanup
13161316
#----------------------------------------------------------#
13171317

13181318
if [ "$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
@@ -1336,7 +1336,7 @@ fi
13361336
#----------------------------------------------------------#
13371337

13381338
if [ "$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
@@ -1350,7 +1350,7 @@ fi
13501350
#----------------------------------------------------------#
13511351

13521352
if [ "$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"
@@ -1396,7 +1396,7 @@ fi
13961396

13971397
if [ "$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
@@ -1436,7 +1436,7 @@ fi
14361436
#----------------------------------------------------------#
14371437

14381438
if [ "$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
@@ -1458,7 +1458,7 @@ fi
14581458
#----------------------------------------------------------#
14591459

14601460
if [ "$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
@@ -1490,7 +1490,7 @@ fi
14901490
#----------------------------------------------------------#
14911491

14921492
if [ "$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/
@@ -1525,7 +1525,7 @@ fi
15251525
#----------------------------------------------------------#
15261526

15271527
if [ "$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
@@ -1578,7 +1578,7 @@ fi
15781578
#----------------------------------------------------------#
15791579

15801580
if [ "$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
@@ -1595,7 +1595,7 @@ fi
15951595
#----------------------------------------------------------#
15961596

15971597
if [ "$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/
@@ -1677,7 +1677,7 @@ fi
16771677
#----------------------------------------------------------#
16781678

16791679
if [ "$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..."
18691869
apt-get -qq update
18701870
apt-get -y upgrade >> $LOG &
18711871
BACK_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..."
18861886
source $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."
19491949
echo ""
19501950
if [ "$interactive" = 'yes' ]; then
19511951
echo -n " Do you want to reboot now? [Y/N] "

0 commit comments

Comments
 (0)