Skip to content

Commit 2426844

Browse files
authored
Fixed an issue with erroneous deleting $domain.\* instead of $domain.pem (hestiacp#3326)
1 parent d1d729e commit 2426844

File tree

3 files changed

+65
-9
lines changed

3 files changed

+65
-9
lines changed

CHANGELOG.md

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,70 @@ All notable changes to this project will be documented in this file.
44

55
## [Development] - Service release
66

7-
### Breaking changes
7+
### Note
88

9-
- Dropped support for Debian 9 (Stretch) as it reached EOL date (New installs got already dropped with 1.6.0 release)
9+
- Debian 9 (Stretch) is no longer supported as it has reached end-of-life status.
10+
- Basic mobile support has been added in this release. This is early stages and we'd very much appreciate your feedback and any reporting of bugs, to further improve the mobile experience
1011

1112
### Features
1213

13-
- Add support for DNSSEC support for DNS domains (#2938)
14-
- Add support for rate limit exim in packages (#2920)
15-
- Add support for ssh keys for SFTP (#2906)
16-
17-
### Bugfixes
14+
- Added basic support for mobile devices (#3166, #3141, #3142, #3157, #3155, #3120, and many more)
15+
- Added DNSSEC support for DNS domains (#2938)
16+
- Added support for MySQL 8 (for new installations) (#xxxx @xxxxx)
17+
- Added support for exim rate limiting in package definitions (#2920)
18+
- Added support for ssh keys for SFTP backups (#2906)
19+
- Added Rclone support for backups to AWS, Cloudfare and [+40 other storage systems](https://rclone.org/overview/) (#2928)
20+
- Added support for importing Cpanel backups (#3238, #3232 @skamasle)
21+
- Added support for folder wildcards in backup exclusions (#2338 @youradds)
22+
- Added Nginx template for Mautic (#3192 3188 @youradds)
23+
- Added alias for composer (#3070)
24+
- Updated PhpPgAdmin and with support for PostgreSQL 15 (<https://github.com/hestiacp/phppgadmin>)
25+
- Upgrade MariaDB to 10.11 (#3305)
26+
27+
### Bugfixes
28+
29+
- Make .yaml files editable in the file manager (#3200 @BelleNottelling)
30+
- Fixed an issue with search not supporting user impersonation. (#3208 #3199)
31+
- Prevent users from renaming directories in /home/user/web/ (#3211)
32+
- Allow special characters for user account "Name" field (#3210)
33+
- Prevent usernames from containing special characters (#3220 #3213)
34+
- Increase DKIM length (#3218)
35+
- Improve password meter CSS (#3221)
36+
- Improve restart behaviour v-update-letsencrypt-ssl (#3231)
37+
- Fix order of applied patches on upgrade (#3239)
38+
- Improve upgrade behaviour for Roundcube and Filegator (#3237 #3236)
39+
- Allow ClientName@domain.com for login via Dovecot/Email (#3024)
40+
- Return a proper error code when unable to connect via API (#3235 #3169)
41+
- Synchronise $BIN and $HESTIA/BIN (#2185 @Steveorevo)
42+
- Block usage of unlimited backups (#3181)
43+
- Update paths /var/run/ to /run (#3159)
44+
- Update PHP versions on various Quick Install apps (#3167 #3149 @dadangnh)
45+
- Update Media Wiki version to 1.39.1 (#3168 @kizule)
46+
- Replace custom HTTPS socket code with libcurl (#3160)
47+
- Add config to avoid restarting daemons on error (#3183 @joeakun)
48+
- Fixed an issue with default template and Quick App installer #3133
49+
- Generalise password reset instructions. #3112
50+
- Allow .tpl files to be editable in File Manager (#3148 @neto737)
51+
- Fixed an issue where domain alias was not being created for domains with two-tier TLD's (such as .co.uk) (#3030)
52+
- Fix/sync issues with existing domains (#3028)
53+
- Fixed an issue Unable to create tmp directory (#3019)
54+
- Fixed an issue with mysqld-iptables in Fail2Ban (#3025)
55+
- Fixed an issue with Logrotate and Awstats (#3297)
56+
- Added Google Public DNS as a secondary resolver to nginx configuration
57+
- Fixed an issue with Proftpd and passive mode external IP (#3266)
58+
- Improve IPv6 handling in v-change-sys-port (#3276 @asmcc)
59+
- Set the correct conflicts for hestia-php on Ubuntu 22.04
60+
- Fixed an issue with erroneous deleting $domain.\* instead of $domain.pem #3221
1861

1962
### Dependencies
2063

64+
- Updated hestia-nginx to 1.23.3
65+
- Updated hestia-php to 8.2.3
66+
- Updated Roundcube to 1.6.1
67+
- Updated Filegator to 7.9.2
68+
- Updated phpMyAdmin to 5.2.21
69+
- Updated phpPgAdmin to 7.3.14-hestiacp
70+
2171
## [1.6.14] - Service release
2272

2373
## Bugfixes

bin/v-delete-web-domain-ssl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ fi
6262

6363
# Deleting old certificate
6464
rm -f $HOMEDIR/$user/conf/web/$domain/ssl/$domain.*
65-
rm -f $USER_DATA/ssl/$domain.*
65+
rm -f $USER_DATA/ssl/$domain.ca
66+
rm -f $USER_DATA/ssl/$domain.crt
67+
rm -f $USER_DATA/ssl/$domain.key
68+
rm -f $USER_DATA/ssl/$domain.pem
6669

6770
# Deleting force ssl
6871
$BIN/v-delete-web-domain-ssl-force "$user" "$domain" 'no' 'yes'

func/domain.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,10 @@ del_mail_ssl_config() {
780780

781781
# Delete generated certificates from user configuration data directory
782782
del_mail_ssl_certificates() {
783-
rm -f $USER_DATA/ssl/mail.$domain.*
783+
rm -f $USER_DATA/ssl/mail.$domain.ca
784+
rm -f $USER_DATA/ssl/mail.$domain.crt
785+
rm -f $USER_DATA/ssl/mail.$domain.key
786+
rm -f $USER_DATA/ssl/mail.$domain.pem
784787
rm -f $HOMEDIR/$user/conf/mail/$domain/ssl/*
785788
}
786789

0 commit comments

Comments
 (0)