Skip to content

Commit 53bde18

Browse files
authored
Staging/1.5.15 (hestiacp#2590)
* Cherry pick commit with fix * Prepare for 1.5.15 release
1 parent 74b2234 commit 53bde18

File tree

8 files changed

+34
-20
lines changed

8 files changed

+34
-20
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [1.5.15] - Service release
5+
6+
### Bugfixes
7+
8+
- Fixed an issue with wildcard DNS records
9+
10+
### Dependencies
11+
12+
- Update phpMyAdmin to 5.1.4 (https://www.phpmyadmin.net/files/5.1.4/) (#2529)
413

514
## [1.5.14] - Service release
615

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ is_common_format_valid() {
876876
}
877877

878878
is_no_new_line_format() {
879-
test=$(echo $1 | head -n1 );
879+
test=$(echo "$1" | head -n1 );
880880
if [[ "$test" != "$1" ]]; then
881881
check_result "$E_INVALID" "invalid value :: $1"
882882
fi

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.5.14'
34+
HESTIA_INSTALL_VER='1.5.15'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.5.14'
34+
HESTIA_INSTALL_VER='1.5.15'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"

install/upgrade/upgrade.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ UPGRADE_RESTART_SERVICES='true'
3636

3737
# Check if update is required by matching versions if version != current version run update
3838
# Set version of phpMyAdmin to install during upgrade if not already installed
39-
pma_v='5.1.3'
39+
pma_v='5.1.4'
4040

4141
# Set version of RoundCube (Webmail) to update during upgrade if not already installed
4242
# Note: only applies to "non-apt installs >= 1.4.0 or manually phased out"

src/deb/hestia/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia
22
Package: hestia
33
Priority: optional
4-
Version: 1.5.14
4+
Version: 1.5.15
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

test/checks.bats

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -179,28 +179,27 @@ r'
179179
}
180180

181181
@test "is_alias_format_valid success" {
182-
run is_domain_format_valid 'hestiacp.com' "key"
182+
run is_alias_format_valid 'hestiacp.com' "key"
183183
assert_success
184184
}
185185

186-
@test "is_alias_format_valid www" {
187-
run is_domain_format_valid 'www' "key"
188-
assert_failure $E_INVALID
186+
@test "is_alias_format_valid success www.domain.com" {
187+
run is_alias_format_valid 'www.hestiacp.com' "key"
188+
assert_success
189189
}
190-
@test "is_alias_format_valid number" {
191-
run is_domain_format_valid '12345' "key"
192-
assert_failure $E_INVALID
190+
@test "is_alias_format_valid success hestiacp.com,www.hestiacp.com" {
191+
run is_alias_format_valid 'hestiacp.com,www.hestiacp.com' "key"
192+
assert_success
193193
}
194194

195-
@test "is_alias_format_valid .." {
196-
run is_domain_format_valid '..' "key"
197-
assert_failure $E_INVALID
195+
@test "is_alias_format_valid success *.hestiacp.com" {
196+
run is_alias_format_valid '*.hestiacp.com' "key"
197+
assert_success
198198
}
199-
@test "is_alias_format_valid LF." {
200-
run is_domain_format_valid 'c
201-
1eshutdown
202-
r' "key"
203-
assert_failure $E_INVALID
199+
200+
@test "is_alias_format_valid success www.hestiacp.com,*.hestiacp.com" {
201+
run is_alias_format_valid 'www.hestiacp.com,*.hestiacp.com' "key"
202+
assert_success
204203
}
205204

206205
@test "is_extention_format_valid test" {

test/test.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,12 @@ function check_ip_not_banned(){
11791179
refute_output
11801180
}
11811181

1182+
@test "DNS: Add domain record *.domain.com" {
1183+
run v-add-dns-record $user $domain '*' A 198.18.0.125 '' 30
1184+
assert_success
1185+
refute_output
1186+
}
1187+
11821188
@test "DNS: Change DNS record" {
11831189
run v-change-dns-record $user $domain 20 test A 198.18.0.125 "" "" 1500
11841190
assert_success

0 commit comments

Comments
 (0)