Skip to content

Commit ca900ad

Browse files
authored
Merge pull request hestiacp#1218 from hestiacp/main
Sync features with main
2 parents 74f1edb + a331088 commit ca900ad

File tree

95 files changed

+36424
-35250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+36424
-35250
lines changed

CHANGELOG.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ All notable changes to this project will be documented in this file.
1212
- Support for removing backup remote location (#1083)
1313
- Add support Proftpd TLS Support
1414
- Add the possibility to assign user "Administrators" rights on login. Replaces "root" login. Notifications are only send towards the "admin" account email
15-
- Updated translations system with the use of Gettext following languages are current supported
16-
- English
17-
- German
18-
- French
19-
- Italian
20-
- Spanish
21-
- Chinese
22-
- Greek
23-
- Russian
24-
- Ukrainian
25-
- Dutch
15+
- Updated translations system with the use of Gettext. Modified / Updated all translated strings
2616

2717
## Bugfixes
2818
- Removed root login (root / root password )
@@ -43,6 +33,14 @@ All notable changes to this project will be documented in this file.
4333
- Changed WordPress name in Webapp installer (#1074)
4434
- Add a free disk space validation during backup routine (#1115)
4535
- Removed PHP validation SSH keys allowing support other types then RSA / DSA
36+
- Fixed an issue which cause wrong password generation (#1184)
37+
- Fixed issue with v-add-sys-ip and saving the ip configuration to correct port (@madito)
38+
- Updated Exim black list for extensions (@kpapad904 / #1138)
39+
- Fixed multiple bugs due to translations
40+
- Fixed bug with passwords containing "'" [Forum](https://forum.hestiacp.com/t/two-factor-authentication-issue-with-standard-user/1652/)
41+
- Refactor LXD Complier script
42+
- Set default theme to "Dark"
43+
- Clean up gmail.tpl (DNS) (@madito)
4644

4745

4846
## [1.2.3] - Service Release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Hestia Control Panel](https://www.hestiacp.com/)
44
==================================================
5-
**Latest stable release:** Version 1.2.3 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
5+
**Latest stable release:** Version 1.2.4 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
88
**Documentation:** [docs.hestiacp.com](https://docs.hestiacp.com/)<br>

bin/v-change-user-package

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ change_user_package
164164

165165
# Update user shell
166166
shell_conf=$(echo "$pkg_data" | grep 'SHELL' | cut -f 2 -d \')
167-
shell=$(grep -w "$shell_conf" /etc/shells |head -n1)
168-
/usr/bin/chsh -s "$shell" "$user" &>/dev/null
167+
$BIN/v-change-user-shell $user $shell_conf
169168

170169
# Run template trigger
171170
if [ -x "$HESTIA/data/packages/$package.sh" ]; then

bin/v-generate-api-key

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# Variable&Function #
1010
#----------------------------------------------------------#
1111

12-
keygen()
13-
{
12+
keygen() {
1413
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
1514
}
1615
KEYS="$HESTIA/data/keys/"

bin/v-update-letsencrypt-ssl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
6565
# Split aliases into array
6666
IFS=',' read -r -a ALIASES <<< "$ALIAS"
6767

68+
# Unset f_aliases
69+
f_aliases=''
70+
6871
# Loop through all crt aliases
6972
for alias in ${aliases//,/ } ; do
7073
# Validate if the alias still exists in web.conf

func/main.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ generate_password() {
186186
matrix=$1
187187
length=$2
188188
if [ -z "$matrix" ]; then
189-
matrix=[:alnum:]
189+
matrix="A-Za-z0-9"
190190
fi
191191
if [ -z "$length" ]; then
192-
length=10
192+
length=16
193193
fi
194-
cat /dev/urandom | tr -dc $matrix | head -c$length
194+
head /dev/urandom | tr -dc $matrix | head -c$length
195195
}
196196

197197
# Package existence check

install/deb/templates/dns/gmail.tpl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%tim
22
ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
33
ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
44
ID='4' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
5-
ID='5' RECORD='localhost' TYPE='A' PRIORITY='' VALUE='127.0.0.1' SUSPENDED='no' TIME='%time%' DATE='%date%'
6-
ID='6' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
7-
ID='7' RECORD='@' TYPE='MX' PRIORITY='1' VALUE='ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
8-
ID='8' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT1.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
9-
ID='9' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT2.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
10-
ID='10' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT3.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
11-
ID='11' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT4.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
12-
ID='12' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% include:_spf.google.com -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
5+
ID='5' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
6+
ID='6' RECORD='@' TYPE='MX' PRIORITY='1' VALUE='ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
7+
ID='7' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT1.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
8+
ID='8' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT2.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
9+
ID='9' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT3.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
10+
ID='10' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT4.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
11+
ID='11' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% include:_spf.google.com -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

install/deb/templates/mail/apache2/default.stpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
SSLVerifyClient none
1010
SSLCertificateFile %home%/%user%/conf/mail/%root_domain%/ssl/%root_domain%.crt
1111
SSLCertificateKeyFile %home%/%user%/conf/mail/%root_domain%/ssl/%root_domain%.key
12-
13-
IncludeOptional %home%/%user%/conf/mail/%root_domain%/apache2.forcessl.conf*
1412

1513
<Directory "/usr/share/tinymce/www/">
1614
Options Indexes MultiViews FollowSymLinks

install/hst-install-debian.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
2323
VERBOSE='no'
2424

2525
# Define software versions
26-
HESTIA_INSTALL_VER='1.3.0~alpha'
26+
HESTIA_INSTALL_VER='1.3.0~beta'
2727
pma_v='5.0.2'
2828
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4")
2929
fpm_v="7.3"
@@ -44,7 +44,7 @@ if [ "$release" -eq 9 ]; then
4444
sudo bc ftp lsof rrdtool quota e2fslibs bsdutils e2fsprogs curl
4545
imagemagick fail2ban dnsutils bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx
4646
hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
47-
rsyslog openssh-server ssh setpriv ipset libapache2-mod-ruid2 zstd"
47+
rsyslog openssh-server setpriv ipset libapache2-mod-ruid2 zstd"
4848
elif [ "$release" -eq 10 ]; then
4949
software="nginx apache2 apache2-utils apache2-suexec-custom
5050
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mod-php$fpm_v
@@ -59,9 +59,9 @@ elif [ "$release" -eq 10 ]; then
5959
mariadb-common mariadb-server postgresql postgresql-contrib phpmyadmin
6060
phppgadmin mc flex whois git idn zip sudo bc ftp lsof rrdtool
6161
quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
62-
bsdmainutils cron hestia hestia-nginx hestia-php expect
62+
bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx hestia-php expect
6363
libmail-dkim-perl unrar-free vim-common acl sysstat rsyslog openssh-server
64-
ssh util-linux ipset libapache2-mpm-itk zstd"
64+
util-linux ipset libapache2-mpm-itk zstd"
6565
fi
6666

6767
installer_dependencies="apt-transport-https curl dirmngr gnupg wget ca-certificates"
@@ -107,7 +107,7 @@ download_file() {
107107

108108
# Defining password-gen function
109109
gen_pass() {
110-
cat /dev/urandom | tr -dc [:alnum:] | head -c16
110+
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16
111111
}
112112

113113
# Defining return code check function
@@ -1799,7 +1799,7 @@ fi
17991799
$HESTIA/bin/v-change-sys-port $port > /dev/null 2>&1
18001800

18011801
# Set default theme
1802-
$HESTIA/bin/v-change-sys-theme 'default'
1802+
$HESTIA/bin/v-change-sys-theme 'dark'
18031803

18041804
# Update remaining packages since repositories have changed
18051805
echo -ne "[ * ] Installing remaining software updates..."

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
2323
VERBOSE='no'
2424

2525
# Define software versions
26-
HESTIA_INSTALL_VER='1.3.0~alpha'
26+
HESTIA_INSTALL_VER='1.3.0~beta'
2727
pma_v='5.0.2'
2828
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4")
2929
fpm_v="7.3"
@@ -44,7 +44,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
4444
postgresql postgresql-contrib proftpd-basic quota roundcube-core
4545
roundcube-mysql roundcube-plugins rrdtool rssh spamassassin sudo hestia=${HESTIA_INSTALL_VER}
4646
hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat setpriv
47-
ipset libonig5 libzip5 openssh-server ssh zstd"
47+
ipset libonig5 libzip5 openssh-server zstd"
4848

4949
installer_dependencies="apt-transport-https curl dirmngr gnupg wget software-properties-common ca-certificates"
5050

@@ -89,7 +89,7 @@ download_file() {
8989

9090
# Defining password-gen function
9191
gen_pass() {
92-
cat /dev/urandom | tr -dc [:alnum:] | head -c16
92+
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16
9393
}
9494

9595
# Defining return code check function
@@ -1838,7 +1838,7 @@ fi
18381838
$HESTIA/bin/v-change-sys-port $port > /dev/null 2>&1
18391839

18401840
# Set default theme
1841-
$HESTIA/bin/v-change-sys-theme 'default'
1841+
$HESTIA/bin/v-change-sys-theme 'dark'
18421842

18431843
# Update remaining packages since repositories have changed
18441844
echo -ne "[ * ] Installing remaining software updates..."

0 commit comments

Comments
 (0)