Skip to content

Commit f6a8660

Browse files
authored
Merge pull request hestiacp#1208 from hestiacp/staging/fixes
Staging/fixes
2 parents 0e40dcb + 30594f7 commit f6a8660

File tree

91 files changed

+37524
-36571
lines changed

Some content is hidden

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

91 files changed

+37524
-36571
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

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -1798,7 +1798,7 @@ fi
17981798
$HESTIA/bin/v-change-sys-port $port > /dev/null 2>&1
17991799

18001800
# Set default theme
1801-
$HESTIA/bin/v-change-sys-theme 'default'
1801+
$HESTIA/bin/v-change-sys-theme 'dark'
18021802

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

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -1837,7 +1837,7 @@ fi
18371837
$HESTIA/bin/v-change-sys-port $port > /dev/null 2>&1
18381838

18391839
# Set default theme
1840-
$HESTIA/bin/v-change-sys-theme 'default'
1840+
$HESTIA/bin/v-change-sys-theme 'dark'
18411841

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

test/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ load 'test_helper/bats-file/load'
66

77

88
function random() {
9-
cat /dev/urandom | tr -dc [:digit:] | head -c$1
9+
head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
1010
}
1111

1212
function setup() {

0 commit comments

Comments
 (0)