Skip to content

Commit e0a99e3

Browse files
author
Kristan Kenney
committed
Move welcome message to function & update style to match upgrade script
1 parent d8c5746 commit e0a99e3

File tree

2 files changed

+42
-30
lines changed

2 files changed

+42
-30
lines changed

install/hst-install-debian.sh

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -436,22 +436,28 @@ fi
436436
# Brief Info #
437437
#----------------------------------------------------------#
438438

439+
install_welcome_message() {
440+
echo
441+
echo ' _ _ _ _ ____ ____ '
442+
echo ' | | | | ___ ___| |_(_) __ _ / ___| _ \ '
443+
echo ' | |_| |/ _ \/ __| __| |/ _` | | | |_) | '
444+
echo ' | _ | __/\__ \ |_| | (_| | |___| __/ '
445+
echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
446+
echo " "
447+
echo " Hestia Control Panel "
448+
echo " ${HESTIA_INSTALL_VER} "
449+
echo " www.hestiacp.com "
450+
echo
451+
echo "========================================================================"
452+
echo
453+
echo "Thank you for downloading Hestia Control Panel! In a few moments,"
454+
echo "we will begin installing the following components on your server:"
455+
echo
456+
}
457+
439458
# Printing nice ASCII logo
440459
clear
441-
echo
442-
echo ' _ _ _ _ ____ ____ '
443-
echo ' | | | | ___ ___| |_(_) __ _ / ___| _ \ '
444-
echo ' | |_| |/ _ \/ __| __| |/ _` | | | |_) |'
445-
echo ' | _ | __/\__ \ |_| | (_| | |___| __/ '
446-
echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
447-
echo
448-
echo ' Hestia Control Panel'
449-
echo " v${HESTIA_INSTALL_VER}"
450-
echo -e "\n"
451-
echo "===================================================================="
452-
echo -e "\n"
453-
echo 'The following components will be installed on your server:'
454-
echo
460+
install_welcome_message
455461

456462
# Web stack
457463
if [ "$nginx" = 'yes' ]; then
@@ -521,7 +527,7 @@ if [ "$iptables" = 'yes' ] && [ "$fail2ban" = 'yes' ]; then
521527
echo -n ' + Fail2Ban Access Monitor'
522528
fi
523529
echo -e "\n"
524-
echo "===================================================================="
530+
echo "========================================================================"
525531
echo -e "\n"
526532

527533
# Asking for confirmation to proceed

install/hst-install-ubuntu.sh

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -411,22 +411,28 @@ fi
411411
# Brief Info #
412412
#----------------------------------------------------------#
413413

414+
install_welcome_message() {
415+
echo
416+
echo ' _ _ _ _ ____ ____ '
417+
echo ' | | | | ___ ___| |_(_) __ _ / ___| _ \ '
418+
echo ' | |_| |/ _ \/ __| __| |/ _` | | | |_) | '
419+
echo ' | _ | __/\__ \ |_| | (_| | |___| __/ '
420+
echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
421+
echo " "
422+
echo " Hestia Control Panel "
423+
echo " ${HESTIA_INSTALL_VER} "
424+
echo " www.hestiacp.com "
425+
echo
426+
echo "========================================================================"
427+
echo
428+
echo "Thank you for downloading Hestia Control Panel! In a few moments,"
429+
echo "we will begin installing the following components on your server:"
430+
echo
431+
}
432+
414433
# Printing nice ASCII logo
415434
clear
416-
echo
417-
echo ' _ _ _ _ ____ ____ '
418-
echo ' | | | | ___ ___| |_(_) __ _ / ___| _ \ '
419-
echo ' | |_| |/ _ \/ __| __| |/ _` | | | |_) |'
420-
echo ' | _ | __/\__ \ |_| | (_| | |___| __/ '
421-
echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
422-
echo
423-
echo ' Hestia Control Panel'
424-
echo " v${HESTIA_INSTALL_VER}"
425-
echo -e "\n"
426-
echo "===================================================================="
427-
echo -e "\n"
428-
echo 'The following components will be installed on your server:'
429-
echo
435+
install_welcome_message
430436

431437
# Web stack
432438
if [ "$nginx" = 'yes' ]; then
@@ -496,7 +502,7 @@ if [ "$iptables" = 'yes' ] && [ "$fail2ban" = 'yes' ]; then
496502
echo -n ' + Fail2Ban Access Monitor'
497503
fi
498504
echo -e "\n"
499-
echo "===================================================================="
505+
echo "========================================================================"
500506
echo -e "\n"
501507

502508
# Asking for confirmation to proceed

0 commit comments

Comments
 (0)