Skip to content

Commit a8d57d1

Browse files
author
Kristan Kenney
committed
Installer language improvements & hotfix for hestiacp#191
Clarified language throughout the installer and welcome e-mail message Added APT repository status during install Temporarily disabled unassigned host page template installation until packages are ready
1 parent e018474 commit a8d57d1

File tree

2 files changed

+107
-65
lines changed

2 files changed

+107
-65
lines changed

install/hst-install-debian.sh

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
275275
fi
276276

277277
# Update apt repository
278-
echo "Please wait a few seconds, we update your repository before we start the installation process..."
278+
echo "Please wait a moment while we update your systems APT repositories..."
279279
apt-get -qq update
280280

281281
# Creating backup directory
@@ -311,7 +311,7 @@ fi
311311

312312
# Checking repository availability
313313
wget --quiet "https://$GPG/deb_signing.key" -O /dev/null
314-
check_result $? "No access to Hestia repository"
314+
check_result $? "Unable to connect to the Hestia APT repository"
315315

316316
# Check installed packages
317317
tmpfile=$(mktemp -p /tmp)
@@ -325,20 +325,20 @@ rm -f $tmpfile
325325
if [ ! -z "$conflicts" ] && [ -z "$force" ]; then
326326
echo '!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
327327
echo
328-
echo 'Following packages are already installed:'
328+
echo 'WARNING: The following packages are already installed'
329329
echo "$conflicts"
330330
echo
331-
echo 'It is highly recommended to remove them before proceeding.'
331+
echo 'It is highly recommended that you remove them before proceeding.'
332332
echo
333333
echo '!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
334334
echo
335-
read -p 'Would you like that we remove the packages for you? [y/n] ' answer
335+
read -p 'Would you like to remove the conflicting packages? [y/n] ' answer
336336
if [ "$answer" = 'y' ] || [ "$answer" = 'Y' ]; then
337337
apt-get -qq purge $conflicts -y
338338
check_result $? 'apt-get remove failed'
339339
unset $answer
340340
else
341-
check_result 1 "Control Panel should be installed on clean server."
341+
check_result 1 "Hestia Control Panel should be installed on a clean server."
342342
fi
343343
fi
344344

@@ -347,19 +347,25 @@ if [ -d /etc/netplan ] && [ -z "$force" ]; then
347347
if [ -z "$(ls -A /etc/netplan)" ]; then
348348
echo '!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
349349
echo
350-
echo 'Noticed a empty netplan configuration directory.'
351-
echo 'You may have a network configuration file using systemd-networkd,'
352-
echo 'we strongly suggest to migrate to a fully netplan configuration.'
350+
echo 'WARNING: Your network configuration may not be set up correctly.'
351+
echo 'Details: The netplan configuration directory is empty.'
353352
echo ''
354-
echo 'You can leave this like it is, but you will be not able to use'
355-
echo 'additional ips properly'
353+
echo 'You may have a network configuration file that was created using'
354+
echo 'systemd-networkd.'
356355
echo ''
357-
echo 'If you want to force installation run this script with -f option:'
356+
echo 'It is strongly recommended to migrate to netplan, which is now the'
357+
echo 'default network configuration system in newer releases of Ubuntu.'
358+
echo ''
359+
echo 'While you can leave your configuration as-is, please note that you'
360+
echo 'will not be able to use additional IPs properly.'
361+
echo ''
362+
echo 'If you wish to continue and force the installation,'
363+
echo 'run this script with -f option:'
358364
echo "Example: bash $0 --force"
359365
echo
360366
echo '!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
361367
echo
362-
check_result 1 "Noticed unused netplan configuration."
368+
check_result 1 "Unable to detect netplan configuration."
363369
fi
364370
fi
365371

@@ -449,7 +455,7 @@ echo -e "\n\n"
449455

450456
# Asking for confirmation to proceed
451457
if [ "$interactive" = 'yes' ]; then
452-
read -p 'Would you like to continue [y/n]: ' answer
458+
read -p 'Would you like to continue? [y/n]: ' answer
453459
if [ "$answer" != 'y' ] && [ "$answer" != 'Y' ]; then
454460
echo 'Goodbye'
455461
exit 1
@@ -497,7 +503,7 @@ fi
497503
echo -e "\nInstallation backup directory: $hst_backups"
498504

499505
# Print Log File Path
500-
echo "Installation Log File: $LOG"
506+
echo "Installation log file: $LOG"
501507

502508
# Print new line
503509
echo
@@ -522,7 +528,7 @@ fi
522528
#----------------------------------------------------------#
523529

524530
# Updating system
525-
echo -ne "Upgrade System using apt-get... "
531+
echo -ne "Updating currently installed packages, please wait... "
526532
apt-get -y upgrade >> $LOG &
527533
BACK_PID=$!
528534

@@ -543,22 +549,25 @@ check_result $? 'apt-get upgrade failed'
543549
apt=/etc/apt/sources.list.d
544550

545551
# Updating system
546-
echo "Install third party repository keys... "
552+
echo "Installing required repository keys... "
547553

548554
# Installing nginx repo
555+
echo "(*) NGINX"
549556
echo "deb [arch=amd64] http://nginx.org/packages/mainline/$VERSION/ $codename nginx" \
550557
> $apt/nginx.list
551558
wget --quiet http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
552559
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev/null 2>&1
553560

554561
if [ "$multiphp" = 'yes' ] || [ "$phpfpm" = 'yes' ]; then
555562
# Installing sury php repo
563+
echo "(*) PHP"
556564
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
557565
wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
558566
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
559567
fi
560568

561569
# Installing MariaDB repo
570+
echo "(*) MariaDB"
562571
echo "deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/10.3/$VERSION $codename main" > $apt/mariadb.list
563572
if [ "$release" -eq 9 ]; then
564573
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F1656F24C74CD1D8 > /dev/null 2>&1
@@ -572,6 +581,7 @@ if [ "$release" -eq 8 ]; then
572581
fi
573582

574583
# Installing hestia repo
584+
echo "(*) Hestia Control Panel"
575585
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
576586
wget --quiet https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
577587
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/deb_signing.key > /dev/null 2>&1
@@ -783,7 +793,8 @@ echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
783793
chmod a+x /usr/sbin/policy-rc.d
784794

785795
# Installing apt packages
786-
echo -ne "Install HestiaCP and all required packages, the process will take around 10-15 minutes... "
796+
echo "Installing Hestia Control Panel and required dependencies..."
797+
echo -ne "NOTE: This process may take 10 to 15 minutes to complete, please wait... "
787798
apt-get -y install $software > /dev/null 2>&1 &
788799
BACK_PID=$!
789800

@@ -979,7 +990,8 @@ cp -rf $hestiacp/packages $HESTIA/data/
979990
cp -rf $hestiacp/templates $HESTIA/data/
980991

981992
# Copy default "Success" page for unassigned hosts
982-
cp -rf $hestiacp/templates/web/unassigned/* /var/www/
993+
# TO-DO: Enable when remaining packages have been updated
994+
# cp -rf $hestiacp/templates/web/unassigned/* /var/www/
983995

984996
# Installing firewall rules
985997
cp -rf $hestiacp/firewall $HESTIA/data/
@@ -1349,7 +1361,7 @@ if [ "$clamd" = 'yes' ]; then
13491361
/lib/systemd/system/clamav-daemon.service
13501362
systemctl daemon-reload
13511363
fi
1352-
echo -ne "Update ClamAV definitions... "
1364+
echo -ne "Installing ClamAV anti-virus definitions... "
13531365
/usr/bin/freshclam >> $LOG &
13541366
BACK_PID=$!
13551367
spin_i=1
@@ -1523,27 +1535,27 @@ check_result $? "can't create admin user"
15231535
$HESTIA/bin/v-change-user-shell admin nologin
15241536
$HESTIA/bin/v-change-user-language admin $lang
15251537

1526-
# RoundCube permissions fix
1538+
# Roundcube permissions fix
15271539
if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15281540
if [ ! -d "/var/log/roundcube" ]; then
15291541
mkdir /var/log/roundcube
15301542
fi
15311543
chown admin:admin /var/log/roundcube
15321544
fi
15331545

1534-
# Configuring system ips
1546+
# Configuring system IPs
15351547
$HESTIA/bin/v-update-sys-ip > /dev/null 2>&1
15361548

15371549
# Get main ip
15381550
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
15391551
local_ip=$ip
15401552

1541-
# Firewall configuration
1553+
# Configuring firewall
15421554
if [ "$iptables" = 'yes' ]; then
15431555
$HESTIA/bin/v-update-firewall
15441556
fi
15451557

1546-
# Get public ip
1558+
# Get public IP
15471559
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
15481560

15491561
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
@@ -1634,20 +1646,29 @@ if [ "$host_ip" = "$ip" ]; then
16341646
fi
16351647

16361648
# Sending notification to admin email
1637-
echo -e "Congratulations, you have just successfully installed \
1638-
Hestia Control Panel
1649+
echo -e "Congratulations!
1650+
1651+
You have successfully installed Hestia Control Panel on your server.
1652+
1653+
Ready to get started? Log in using the following credentials:
1654+
1655+
Admin URL: https://$ip:$port
1656+
Username: admin
1657+
Password: $vpass
1658+
1659+
Thank you for choosing Hestia Control Panel to power your server,
1660+
we hope that you enjoy it as much as we do!
16391661
1640-
https://$ip:$port
1641-
username: admin
1642-
password: $vpass
1662+
Please feel free to contact us at any time if you have any questions,
1663+
or if you encounter any bugs or problems:
16431664
1644-
We hope that you enjoy your installation of Hestia. Please \
1645-
feel free to contact us anytime if you have any questions.
1646-
Thank you.
1665+
E-mail: info@hestiacp.com
1666+
Web: https://www.hestiacp.com/
1667+
GitHub: https://www.github.com/hestiacp/hestiacp
16471668
16481669
--
1649-
Sincerely yours
1650-
hestiacp.com team
1670+
Sincerely yours,
1671+
The Hestia Control Panel development team
16511672
" > $tmpfile
16521673

16531674
send_mail="$HESTIA/web/inc/mail-wrapper.php"

0 commit comments

Comments
 (0)