Skip to content

Commit b718eb5

Browse files
committed
Merge branch 'main' into release
2 parents 40102ca + 6abcc67 commit b718eb5

File tree

564 files changed

+2091
-3349
lines changed

Some content is hidden

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

564 files changed

+2091
-3349
lines changed

.drone.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ steps:
7676
- name: Run restore tests
7777
commands:
7878
- bats ./test/restore.bats
79+
- name: Run Letsencrypt test against Staging
80+
commands:
81+
- cp /root/le-env.sh /tmp/hestia-le-env.sh
82+
- bats ./test/letsencrypt.bats
7983
- name: Run config tests
8084
commands:
8185
- bats ./test/config-tests.bats
@@ -105,4 +109,4 @@ trigger:
105109

106110
---
107111
kind: signature
108-
hmac: 48d34d11001c99b470114f50c4284fa107a5e61ad08ada38307493b9e9b2883f
112+
hmac: da6a96c077ec55ccfb27ec8a3250eeb0700153078adf088dc70998b2cd033b28

CHANGELOG.md

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

4+
## [1.5.2] - Service release
5+
6+
### Features
7+
8+
- Release notes are now available from the notification panel (#2276)
9+
- Web domain aliases are now displayed in the domain list (#2278 / #2289)
10+
- DNS, Mail, and Database sections will now be hidden in /edit/server if not installed (#2300)
11+
- Turkey has been added as an option for ipset (#2294)
12+
13+
### Bugfixes
14+
15+
- Improvements have been made to overall code quality (#2293, #2298, #2307)
16+
- Added improvements to the automated testing suite (bats) (#2280)
17+
- Clarified text that is shown during upgrade process (#2270)
18+
- Updated web domain templates to allow the use of .user.ini (#2267 / #2269)
19+
- Fixed an issue with the curl symlink on Debian during build process (#2275)
20+
- Fixed an issue where CAA records were deleted when turning off SSL for webmail (#2279)
21+
- Fixed an issue where email validation would fail when using IDN domains (#2273)
22+
- Changed behavior to prevent php-fpm restarts when modphp is installed (#2270)
23+
- Fixed an issue where passwords may not be correctly set on Debian 11 (#2270)
24+
- Fixed an issue with command path v-change-firewall-rule (#2249)
25+
- Fixed an issue in `v-backup-user` where you may encounter an error "invalid parameters for check_result" (#2284)
26+
- Fixed an issue which impacted the performance of Nextcloud/Owncloud ([forum post](https://forum.hestiacp.com/t/tip-create-a-nginx-template-for-nextcloud-to-let-synchronize-files-bigger-than-10mb/5123))
27+
- Fixed an issue where the access port for HestiaCP was not properly set on install (#2288 / #2291)
28+
- Fixed an issue where admins could not log in as a suspended user in the panel (#2286 / #2289)
29+
- Fixed an issue where the "Delete" button in the Edit User interface did not work as expected (#2282 / #2289)
30+
- Fixed an issue where editing an existing firewall rule with ipset would fail (#2292)
31+
- Fixed an error that may occur in /edit/server when no extra php versions were installed (#2289)
32+
- Fixed an issue where accessing the panel via Safari would result in error NSPOSIXErrorDomain:100 (#2274)
33+
- Corrected command syntax in v-delete-dns-records (#2295)
34+
- Fixed an issue where API allowed IP list values would be lost when saving changes (#2296 / #2300)
35+
- Fixed an issue where the debug mode option was not displayed on release builds and would be reset when saving server settings (#2300)
36+
- Fixed an issue where grep would throw an error when adding ipset rules for the first time (#2307)
37+
- Fixed incorrect variable spelling ($v_interace > $v_interface) (#2307)
38+
- Updated mail domain templates
39+
- Updated command line examples for docs.hestiacp.com
40+
- Fixed an issue where Lets encrypt was not able to obtain an valid ssl certificate when force ssl and / or redirect was enabled (#2176 / #2304 / #2304)
41+
- Fixed a issue in v-list-sys-dns-system
42+
43+
### Dependencies
44+
45+
446
## [1.5.1] - Service release
547

648
### 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.1 | [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.2 | [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-acknowledge-user-notification

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/bash
22
# info: update user notification
33
# options: USER NOTIFICATION
4-
# labels: panel
54
#
65
# example: v-acknowledge-user-notification
76
#
8-
# The function updates user notification.
9-
7+
# This function updates user notification.
108

119
#----------------------------------------------------------#
12-
# Variable&Function #
10+
# Variables & Functions #
1311
#----------------------------------------------------------#
1412

1513
# Argument definition
@@ -23,6 +21,7 @@ source /etc/hestiacp/hestia.conf
2321
source $HESTIA/func/main.sh
2422
# load config file
2523
source_conf "$HESTIA/conf/hestia.conf"
24+
2625
#----------------------------------------------------------#
2726
# Verifications #
2827
#----------------------------------------------------------#
@@ -34,7 +33,6 @@ is_object_valid 'user' 'USER' "$user"
3433
# Perform verification if read-only mode is enabled
3534
check_hestia_demo_mode
3635

37-
3836
#----------------------------------------------------------#
3937
# Action #
4038
#----------------------------------------------------------#

bin/v-add-backup-host

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#!/bin/bash
22
# info: add backup host
33
# options: TYPE HOST USERNAME PASSWORD [PATH] [PORT]
4-
# labels:
54
#
65
# example: v-add-backup-host sftp backup.acme.com admin p4$$w@Rd
76
# v-add-backup-host b2 bucketName keyID applicationKey
87
#
98
# Add a new remote backup location. Currently SFTP, FTP and Backblaze are supported
109

1110
#----------------------------------------------------------#
12-
# Variable&Function #
11+
# Variables & Functions #
1312
#----------------------------------------------------------#
1413

1514
# Argument definition
@@ -99,7 +98,6 @@ sftpc() {
9998
EOF
10099
}
101100

102-
103101
#----------------------------------------------------------#
104102
# Verifications #
105103
#----------------------------------------------------------#
@@ -230,7 +228,6 @@ elif [ $type == 'b2' ]; then
230228
chmod 660 $HESTIA/conf/$type.backup.conf
231229
fi
232230

233-
234231
#----------------------------------------------------------#
235232
# Hestia #
236233
#----------------------------------------------------------#

bin/v-add-cron-hestia-autoupdate

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/bin/bash
2-
# info: add cron job for hestia autoupdates
2+
# info: add cron job for hestia automatic updates
33
# options: MODE
4-
# labels:
54
#
6-
# The function adds cronjob for hestia autoupdate from apt or git.
7-
5+
# This function adds a cronjob for hestia automatic updates
6+
# that can be downloaded from apt or git.
87

98
#----------------------------------------------------------#
10-
# Variable&Function #
9+
# Variables & Functions #
1110
#----------------------------------------------------------#
1211

1312
# Argument definition
@@ -22,7 +21,6 @@ source $HESTIA/func/main.sh
2221
# load config file
2322
source_conf "$HESTIA/conf/hestia.conf"
2423

25-
2624
#----------------------------------------------------------#
2725
# Verifications #
2826
#----------------------------------------------------------#
@@ -39,7 +37,6 @@ fi
3937
# Perform verification if read-only mode is enabled
4038
check_hestia_demo_mode
4139

42-
4340
#----------------------------------------------------------#
4441
# Action #
4542
#----------------------------------------------------------#
@@ -75,13 +72,13 @@ str="$str CMD='$command' SUSPENDED='no' TIME='$time' DATE='$date'"
7572
# Adding to crontab
7673
echo "$str" >> $HESTIA/data/users/$user/cron.conf
7774

78-
# Chaning permissions
75+
# Changing permissions
7976
chmod 660 $HESTIA/data/users/$user/cron.conf
8077

8178
# Sort jobs by id number
8279
sort_cron_jobs
8380

84-
# Sync cronjobs with system crond
81+
# Sync cronjobs with system cron
8582
sync_cron_jobs
8683

8784
#----------------------------------------------------------#
@@ -91,7 +88,7 @@ sync_cron_jobs
9188
# Increasing cron value
9289
increase_user_value "$user" '$U_CRON_JOBS'
9390

94-
# Restarting crond
91+
# Restarting cron
9592
$BIN/v-restart-cron
9693
check_result $? "Cron restart failed" >/dev/null
9794

bin/v-add-cron-job

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
#!/bin/bash
22
# info: add cron job
33
# options: USER MIN HOUR DAY MONTH WDAY COMMAND [JOB] [RESTART]
4-
# labels:
54
#
65
# example: v-add-cron-job admin * * * * * sudo /usr/local/hestia/bin/v-backup-users
76
#
8-
# The function adds a job to cron daemon. When executing commands, any output
7+
# This function adds a job to cron daemon. When executing commands, any output
98
# is mailed to user's email if parameter REPORTS is set to 'yes'.
109

11-
1210
#----------------------------------------------------------#
13-
# Variable&Function #
11+
# Variables & Functions #
1412
#----------------------------------------------------------#
1513

1614
# Argument definition
@@ -51,7 +49,6 @@ is_object_new 'cron' 'JOB' "$job"
5149
# Perform verification if read-only mode is enabled
5250
check_hestia_demo_mode
5351

54-
5552
#----------------------------------------------------------#
5653
# Action #
5754
#----------------------------------------------------------#
@@ -77,15 +74,14 @@ sort_cron_jobs
7774
# Sync cronjobs with system crond
7875
sync_cron_jobs
7976

80-
8177
#----------------------------------------------------------#
8278
# Hestia #
8379
#----------------------------------------------------------#
8480

8581
# Increasing cron value
8682
increase_user_value $user '$U_CRON_JOBS'
8783

88-
# Restarting crond
84+
# Restarting cron
8985
$BIN/v-restart-cron "$restart"
9086
check_result $? "Cron restart failed" >/dev/null
9187

bin/v-add-cron-letsencrypt-job

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash
2-
# info: add letsencrypt cronjob
2+
# info: add cron job for Let's Encrypt certificates
33
# options: NONE
4-
# labels:
54
#
6-
# The script for enabling letsencrypt cronjob
7-
5+
# This function adds a new cron job for Let's Encrypt.
86

97
#----------------------------------------------------------#
10-
# Variable&Function #
8+
# Variables & Functions #
119
#----------------------------------------------------------#
1210

1311
# Includes
@@ -18,7 +16,6 @@ source $HESTIA/func/main.sh
1816
# load config file
1917
source_conf "$HESTIA/conf/hestia.conf"
2018

21-
2219
#----------------------------------------------------------#
2320
# Verifications #
2421
#----------------------------------------------------------#
@@ -39,7 +36,6 @@ if [ -z "$check_cron" ] && [ -n "$CRON_SYSTEM" ]; then
3936
$BIN/v-add-cron-job admin '*/5' '*' '*' '*' '*' "$cmd"
4037
fi
4138

42-
4339
#----------------------------------------------------------#
4440
# Hestia #
4541
#----------------------------------------------------------#

bin/v-add-cron-reports

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
#!/bin/bash
22
# info: add cron reports
33
# options: USER
4-
# labels:
54
#
65
# example: v-add-cron-reports admin
76
#
8-
# The script for enabling reports on cron tasks and administrative
7+
# This function for enabling reports on cron tasks and administrative
98
# notifications.
109

11-
1210
#----------------------------------------------------------#
13-
# Variable&Function #
11+
# Variables & Functions #
1412
#----------------------------------------------------------#
1513

1614
# Argument definition
@@ -24,7 +22,6 @@ source $HESTIA/func/main.sh
2422
# load config file
2523
source_conf "$HESTIA/conf/hestia.conf"
2624

27-
2825
#----------------------------------------------------------#
2926
# Verifications #
3027
#----------------------------------------------------------#
@@ -48,12 +45,11 @@ update_user_value "$user" '$CRON_REPORTS' 'yes'
4845
# Sync system cron with user
4946
sync_cron_jobs
5047

51-
5248
#----------------------------------------------------------#
5349
# Hestia #
5450
#----------------------------------------------------------#
5551

56-
# Restart crond
52+
# Restart cron
5753
$BIN/v-restart-cron
5854
check_result $? "Cron restart failed" >/dev/null
5955

bin/v-add-cron-restart-job

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash
22
# info: add cron reports
33
# options: NONE
4-
# labels:
54
#
6-
# The script for enabling restart cron tasks
7-
5+
# This function for enabling restart cron tasks
86

97
#----------------------------------------------------------#
10-
# Variable&Function #
8+
# Variables & Functions #
119
#----------------------------------------------------------#
1210

1311
# Includes
@@ -18,7 +16,6 @@ source $HESTIA/func/main.sh
1816
# load config file
1917
source_conf "$HESTIA/conf/hestia.conf"
2018

21-
2219
#----------------------------------------------------------#
2320
# Verifications #
2421
#----------------------------------------------------------#
@@ -39,7 +36,6 @@ if [ -z "$check_cron" ] && [ -n "$CRON_SYSTEM" ]; then
3936
$BIN/v-add-cron-job admin '*' '*' '*' '*' '*' "$cmd"
4037
fi
4138

42-
4339
#----------------------------------------------------------#
4440
# Hestia #
4541
#----------------------------------------------------------#

0 commit comments

Comments
 (0)