Skip to content

Commit 229fddb

Browse files
committed
Merge branch 'main' into release
2 parents 42297a4 + ca6d487 commit 229fddb

File tree

37 files changed

+252
-102
lines changed

37 files changed

+252
-102
lines changed

.drone.yml

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ steps:
4040
- ./test/check_php.sh
4141

4242
trigger:
43-
event: [ push, pull_request ]
43+
event: [ pull_request, push ]
44+
ref:
45+
- refs/heads/staging/*
46+
- refs/heads/beta
47+
- refs/heads/release
48+
- refs/heads/main
49+
- refs/pull/*/head
4450

4551
---
4652
kind: pipeline
@@ -88,7 +94,13 @@ steps:
8894
- ./test/check_php.sh
8995

9096
trigger:
91-
event: [ push, pull_request ]
97+
event: [ pull_request, push ]
98+
ref:
99+
- refs/heads/staging/*
100+
- refs/heads/beta
101+
- refs/heads/release
102+
- refs/heads/main
103+
- refs/pull/*/head
92104

93105
---
94106
kind: pipeline
@@ -107,6 +119,54 @@ steps:
107119
trigger:
108120
event: [ pull_request, push ]
109121

122+
---
123+
kind: pipeline
124+
type: docker
125+
name: Push to beta atp server
126+
127+
platform:
128+
os: linux
129+
arch: amd64
130+
131+
steps:
132+
- name: Build
133+
image: debian:bullseye
134+
commands:
135+
- ln -snf /etc/localtime && echo CET > /etc/timezone
136+
- ./src/hst_autocompile.sh --dontinstalldeps --hestia --debug --cross --noinstall --keepbuild --debug '~localsrc'
137+
- mkdir -p ./hestia/
138+
- mv /tmp/hestiacp-src/deb/*.deb ./hestia/
139+
- name: Upload
140+
image: appleboy/drone-scp
141+
settings:
142+
host:
143+
from_secret: apt_server
144+
user: root
145+
key:
146+
from_secret: ssh_key
147+
port: 22
148+
command_timeout: 2m
149+
target: /root/
150+
source:
151+
- ./hestia/*
152+
- name: Publish
153+
image: appleboy/drone-ssh
154+
settings:
155+
host:
156+
from_secret: apt_server
157+
user: root
158+
key:
159+
from_secret: ssh_key
160+
port: 22
161+
command_timeout: 2m
162+
script:
163+
- freight-add ./hestia/*.deb apt/bionic apt/focal apt/strech apt/buster apt/bullseye
164+
- freight-cache
165+
- rm -fr ./hestia/
166+
167+
trigger:
168+
event: [ promote]
169+
110170
---
111171
kind: signature
112-
hmac: e6d1a0d62ad4f5b0b8bed33c248e55e6de60ee9c1601ee5395fe5d5e72942e85
172+
hmac: 31806a1e5357c43d17d24ef797995fb9952a1d883ad282fd152d7d0378112213

CHANGELOG.md

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

4+
## [1.5.8] - Service release
5+
6+
### Features
7+
8+
- No new features has been introduced
9+
10+
### Bugfixes
11+
12+
- Fixed an issue where SFTP jail was not enabled correctly for additional FTP accounts #2403
13+
- Fixed an issue in the installer where the "Press any key to continue" prompt only responded to the Enter key #2398
14+
- Fixed an issue where list sort order preference variable wasn't saved properly #2391
15+
- Fixed an issue with inconsistent behaviour in mail account settings information dialog #2392
16+
- Fixed an issue where .gnupg folder in /root/ had the wrong permissions set.
17+
- Fixed an issue where users were being redirected to login page when visiting /reset/ endpoint #2401
18+
- Fixed an issue where deleting sftp jail did not revert back permissions of said user. #2143
19+
- Fixed an issue where "REDIRECT" variable wasn't cleared correctly causing other sites to redirect to the domain after v-update-letsencrypt-ssl
20+
- Changed repository url MariaDB for new installs to https://wdlm.mariadb.com/repo/mariadb-server
21+
22+
### Dependencies
23+
24+
- Update phpMyAdmin to 5.1.3 (https://github.com/phpmyadmin/phpmyadmin/releases/tag/RELEASE_5_1_3)
25+
426
## [1.5.7] - Service release
527

628
### 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.5 | [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.8 | [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-add-sys-sftp-jail

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ fi
7272
# Checking users
7373
shells="rssh|nologin"
7474
for user in $(grep "$HOMEDIR" /etc/passwd |egrep "$shells" |cut -f 1 -d:); do
75-
if [ -d "$HESTIA/data/users/$user" ]; then
75+
# Include all users v-add-user-sftp-jail will handle it
7676
$BIN/v-add-user-sftp-jail "$user" "no"
77-
fi
7877
done
7978

8079
# Restart ssh service

bin/v-add-user-sftp-jail

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ check=$(is_object_valid 'user' 'USER' "$user")
3232
if [ $? -ne 0 ]; then
3333
user_str=$(grep "^$user:" /etc/passwd |egrep "rssh|nologin")
3434
#try to detect "owner" of the ftp_user if not found dont set it up
35-
user=$(echo $user_str | cut -f6 -d : | cut -f3 -d / )
36-
is_object_valid 'user' 'USER' "$user"
35+
user_owner=$(echo $user_str | cut -f6 -d : | cut -f3 -d / )
36+
is_object_valid 'user' 'USER' "$user_owner"
3737
fi
3838
user_str=$(grep "^$user:" /etc/passwd |egrep "rssh|nologin")
3939
if [ -z "$user_str" ]; then

bin/v-add-web-domain

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ source $HESTIA/func/main.sh
3333
source $HESTIA/func/domain.sh
3434
# shellcheck source=/usr/local/hestia/func/ip.sh
3535
source $HESTIA/func/ip.sh
36+
# shellcheck source=/usr/local/hestia/func/syshealth.sh
37+
source $HESTIA/func/syshealth.sh
3638
# load config file
3739
source_conf "$HESTIA/conf/hestia.conf"
3840

@@ -212,6 +214,8 @@ echo "DOMAIN='$domain' IP='$ip' IP6='' CUSTOM_DOCROOT='' ALIAS='$ALIAS' TPL='$WE
212214
STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='0' U_BANDWIDTH='0'\
213215
SUSPENDED='no' TIME='$time' DATE='$date'" >> $USER_DATA/web.conf
214216

217+
syshealth_repair_web_config
218+
215219
# Restarting web server
216220
$BIN/v-restart-web "$restart"
217221
check_result $? "Web restart failed" >/dev/null

bin/v-change-user-sort-order

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ check_hestia_demo_mode
3939
# Action #
4040
#----------------------------------------------------------#
4141

42-
$HESTIA/bin/v-change-user-config-value "$user" "$PREF_UI_SORT" "$sort_order"
42+
$HESTIA/bin/v-change-user-config-value "$user" 'PREF_UI_SORT' "$sort_order"
4343

4444
#----------------------------------------------------------#
4545
# Hestia #

bin/v-check-user-password

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ if echo "$shadow" | grep -qE '^\$[0-9a-z]+\$[^\$]+\$'
6262
then
6363
salt=$(echo "$shadow" |cut -f 3 -d \$)
6464
method=$(echo "$shadow" |cut -f 2 -d \$)
65-
if [ "$method" -eq '1' ]; then
65+
if [ "$method" = "y" ]; then
66+
echo "Unsuported hash method";
67+
exit 1;
68+
elif [ "$method" -eq '1' ]; then
6669
method='md5'
6770
elif [ "$method" -eq '6' ]; then
6871
method='sha-512'

bin/v-delete-user-sftp-jail

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ done
6060
users=$(IFS=',';echo "${new_users[*]// /|}";IFS=$' \t\n')
6161
sed -i "s/$ssh_users/$users/g" /etc/ssh/sshd_config
6262

63-
63+
# chown permissions back to user:user
64+
if [ -d "/home/$user" ]; then
65+
chown $user:$user /home/$user
66+
fi
6467
#----------------------------------------------------------#
6568
# Hestia #
6669
#----------------------------------------------------------#
@@ -70,6 +73,6 @@ service ssh restart > /dev/null 2>&1
7073
service sshd restart > /dev/null 2>&1
7174

7275
# Logging
73-
#log_event "$OK" "$ARGUMENTS"
76+
log_event "$OK" "$ARGUMENTS"
7477

7578
exit

bin/v-update-letsencrypt-ssl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
source /etc/hestiacp/hestia.conf
1616
# shellcheck source=/usr/local/hestia/func/main.sh
1717
source $HESTIA/func/main.sh
18+
# shellcheck source=/usr/local/hestia/func/syshealth.sh
19+
source $HESTIA/func/syshealth.sh
1820
# load config file
1921
source_conf "$HESTIA/conf/hestia.conf"
2022

@@ -39,7 +41,8 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
3941
USER_DATA=$HESTIA/data/users/$user
4042

4143
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
42-
44+
# Clear any keys related to web domains
45+
sanitize_config_file "web"
4346
domain_suspended="$(get_object_value 'web' 'DOMAIN' "$domain" '$SUSPENDED')"
4447
if [ "$domain_suspended" = "yes" ]; then
4548
continue

0 commit comments

Comments
 (0)