Skip to content

Commit 10579ad

Browse files
committed
Merge remote-tracking branch 'origin/main' into release
2 parents 1b8a2f2 + ac9c66e commit 10579ad

34 files changed

+134
-70
lines changed

CHANGELOG.md

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

4+
## [1.5.11] - Service release
5+
6+
### Bugfixes
7+
- Fixed an issue where Hestia port change did not update chain for fail2ban (#2465)
8+
- Fixed permission issues with /var/log/roundcube (#2466)
9+
- Fixed multiple issues in UI (#2464)
10+
- Allow v-change-user-template update backend templates (#2475)
11+
- Update composer dependencies (#2458 #2459)
12+
- Fixed an XSS vulnerability in "Edit" server page. (#2471) [CVE-2022-0986](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0986)
13+
- Fixed an issue with caching templates and internal redirects (#2482)
14+
415
## [1.5.10] - Service release
516

617
### Bugfixes

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.5.10 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
5+
**Latest stable release:** Version 1.5.11 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <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-sys-port

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ else
7373
fi
7474
sed -i "/COMMENT='HESTIA'/c\RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='$PORT' IP='0.0.0.0/0' COMMENT='HESTIA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'" $HESTIA/data/firewall/rules.conf
7575

76+
# Update F2B chains config
77+
if [ -f "$HESTIA/data/firewall/chains.conf" ]; then
78+
sed -i "s/PORT='$ORIGINAL_PORT'/PORT='$PORT'/g" $HESTIA/data/firewall/chains.conf
79+
fi
80+
7681
# Restart services
7782
if [ -n "$FIREWALL_SYSTEM" ] && [ "$FIREWALL_SYSTEM" != no ]; then
7883
$HESTIA/bin/v-restart-service iptables

bin/v-change-user-template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ case $type in
4646
update_user_value "$user" '$WEB_TEMPLATE' "$template";;
4747
PROXY) is_proxy_template_valid "$template";
4848
update_user_value "$user" '$PROXY_TEMPLATE' "$template";;
49+
BACKEND) is_backend_template_valid "$template";
50+
update_user_value "$user" '$BACKEND_TEMPLATE' "$template";;
4951
DNS) is_dns_template_valid "$template";
5052
update_user_value "$user" '$DNS_TEMPLATE' "$template";;
5153
*) check_args '1' '0' 'USER TYPE TEMPLATE'

install/deb/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ http {
128128

129129
# Proxy cache
130130
proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=1024m;
131-
proxy_cache_key "$host$request_uri $cookie_user";
131+
proxy_cache_key "$scheme$request_method$host$request_uri";
132132
proxy_temp_path /var/cache/nginx/temp;
133133
proxy_ignore_headers Expires Cache-Control;
134134
proxy_cache_use_stale error timeout invalid_header http_502;

install/hst-install-debian.sh

Lines changed: 1 addition & 9 deletions
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.10'
34+
HESTIA_INSTALL_VER='1.5.11'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"
@@ -1898,14 +1898,6 @@ fi
18981898
# Configure IP #
18991899
#----------------------------------------------------------#
19001900

1901-
# Roundcube permissions fix
1902-
if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
1903-
if [ ! -d "/var/log/roundcube" ]; then
1904-
mkdir /var/log/roundcube
1905-
fi
1906-
chown admin:admin /var/log/roundcube
1907-
fi
1908-
19091901
# Configuring system IPs
19101902
echo "[ * ] Configuring System IP..."
19111903
$HESTIA/bin/v-update-sys-ip > /dev/null 2>&1

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.10'
34+
HESTIA_INSTALL_VER='1.5.11'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"

install/upgrade/versions/1.5.10.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Hestia Control Panel upgrade script for target version 1.5.9
3+
# Hestia Control Panel upgrade script for target version 1.5.10
44

55
#######################################################################################
66
####### Place additional commands below. #######

install/upgrade/versions/1.5.11.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.5.11
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
####### Pass through information to the end user in case of a issue or problem #######
9+
####### #######
10+
####### Use add_upgrade_message "My message here" to include a message #######
11+
####### in the upgrade notification email. Example: #######
12+
####### #######
13+
####### add_upgrade_message "My message here" #######
14+
####### #######
15+
####### You can use \n within the string to create new lines. #######
16+
#######################################################################################
17+
18+
upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
19+
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
20+
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
21+
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
22+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
23+
24+
PORT=$(cat $HESTIA/nginx/conf/nginx.conf | grep "listen" | sed 's/[^0-9]*//g')
25+
26+
if [ "$PORT" != "8083" ]; then
27+
# Update F2B chains config
28+
if [ -f "$HESTIA/data/firewall/chains.conf" ]; then
29+
# Update value in chains.conf
30+
sed -i "s/PORT='8083'/PORT='$PORT'/g" $HESTIA/data/firewall/chains.conf
31+
fi
32+
33+
# Restart services
34+
if [ -n "$FIREWALL_SYSTEM" ] && [ "$FIREWALL_SYSTEM" != no ]; then
35+
$HESTIA/bin/v-stop-firewall
36+
$HESTIA/bin/v-update-firewall
37+
38+
fi
39+
fi
40+
41+
# Fix Roundcube logdir permission
42+
if [ -d "/var/log/roundcube" ]; then
43+
chown www-data:www-data /var/log/roundcube
44+
fi
45+
46+
# Fix bug in nginx.conf for proxy cache
47+
if [ -d "/etc/nginx/nginx.conf" ]; then
48+
echo "[ ! ] Fixed an issue with proxy cache and redirects"
49+
sed -i 's/proxy_cache_key "$host$request_uri $cookie_user";/proxy_cache_key "$scheme$request_method$host$request_uri";/g' /etc/nginx/nginx.conf
50+
fi

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.10
4+
Version: 1.5.11
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

0 commit comments

Comments
 (0)