Skip to content

Commit 48abccd

Browse files
2651 [Feature] Remove plain text password from welcome email (hestiacp#2706)
* Remove plain text from welcome mail * Use 1.6.2 instead * Source upgrade.conf So we don't have to set phpmyadmin / roundcube versions in each file * Missing space. Co-authored-by: Raphael <rs@scit.ch>
1 parent 25689b3 commit 48abccd

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

install/hst-install-debian.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ VERBOSE='no'
3333
# Define software versions
3434
HESTIA_INSTALL_VER='1.6.3~alpha'
3535
# Dependencies
36-
pma_v='5.2.0'
37-
rc_v="1.5.3"
3836
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
3937
fpm_v="8.0"
4038
mariadb_v="10.6"
@@ -626,8 +624,10 @@ else
626624
fi
627625

628626
# Generating admin password if it wasn't set
627+
displaypass="The password you chose during installation."
629628
if [ -z "$vpass" ]; then
630-
vpass=$(gen_pass)
629+
vpass=$(gen_pass);
630+
displaypass=$vpass
631631
fi
632632

633633
# Set FQDN if it wasn't set
@@ -1510,6 +1510,10 @@ fi
15101510
# Configure phpMyAdmin #
15111511
#----------------------------------------------------------#
15121512

1513+
# Source upgrade.conf with phpmyadmin versions
1514+
# shellcheck source=/usr/local/hestia/install/upgrade/upgrade.conf
1515+
source $HESTIA/install/upgrade/upgrade.conf
1516+
15131517
if [ "$mysql" = 'yes' ]; then
15141518
# Display upgrade information
15151519
echo "[ * ] Installing phpMyAdmin version v$pma_v..."
@@ -2059,7 +2063,7 @@ Ready to get started? Log in using the following credentials:
20592063
20602064
Admin URL: https://$ip:$port
20612065
Username: admin
2062-
Password: $vpass
2066+
Password: $displaypass
20632067
20642068
Thank you for choosing Hestia Control Panel to power your full stack web server,
20652069
we hope that you enjoy using it as much as we do!

install/hst-install-ubuntu.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ VERBOSE='no'
3333
# Define software versions
3434
HESTIA_INSTALL_VER='1.6.2~alpha'
3535
# Dependencies
36-
pma_v='5.2.0'
37-
rc_v="1.5.3"
3836
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
3937
fpm_v="8.0"
4038
mariadb_v="10.6"
@@ -615,9 +613,11 @@ fi
615613
fi
616614

617615
# Generating admin password if it wasn't set
618-
if [ -z "$vpass" ]; then
619-
vpass=$(gen_pass)
620-
fi
616+
displaypass="The password you chose during installation."
617+
if [ -z "$vpass" ]; then
618+
vpass=$(gen_pass);
619+
displaypass=$vpass
620+
fi
621621

622622
# Set FQDN if it wasn't set
623623
mask1='(([[:alnum:]](-?[[:alnum:]])*)\.)'
@@ -1578,6 +1578,10 @@ fi
15781578
# Configure phpMyAdmin #
15791579
#----------------------------------------------------------#
15801580

1581+
# Source upgrade.conf with phpmyadmin versions
1582+
# shellcheck source=/usr/local/hestia/install/upgrade/upgrade.conf
1583+
source $HESTIA/install/upgrade/upgrade.conf
1584+
15811585
if [ "$mysql" = 'yes' ]; then
15821586
# Display upgrade information
15831587
echo "[ * ] Installing phpMyAdmin version v$pma_v..."
@@ -2138,7 +2142,7 @@ Ready to get started? Log in using the following credentials:
21382142
21392143
Admin URL: https://$ip:$port
21402144
Username: admin
2141-
Password: $vpass
2145+
Password: $displaypass
21422146
21432147
Thank you for choosing Hestia Control Panel to power your full stack web server,
21442148
we hope that you enjoy using it as much as we do!

0 commit comments

Comments
 (0)