Skip to content

Commit f9e5c5c

Browse files
authored
Merge staging in main (hestiacp#2237)
* Slightly improve error messages api * Add support for ARM on APT * Update changelog + version package + Adjust copyright year to 2021 * Update last copyright package * Add check if /etc/hestiacp/hestia.conf exists * Fix bug in rebuild web domains * Fix issue with restart webserver during rebuild * Improve v-add-lets-encrypt-domain * Small change in changelog * Fix bug in v-add-letsencrypt-host * Manage sieve disabled on default * Remove sieve reference from default config Prevent webmail from working propperly * Add support for cross compile hestia pacakge * When backend port is missing use $ORIGINAL_PORT instead of $PORT * Add BACKEND_PORT to hestia.conf * Update translations * Add error message when attempting cross compile non hestia package hestia-nginx and hestia-php doesn't support compiling on amd64 machine for arm64 * Update Changelog * Update changelog + readme Adjust version to 1.5.0 * Update version hestia-nginx + hestia-php * Fix bug in update script where ~rc was not removed Adjusted sed command to also match everything behind ~
1 parent 099d31a commit f9e5c5c

37 files changed

+314
-191
lines changed

CHANGELOG.md

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

4-
## [DEVELOPMENT] - Development version
4+
## [1.5.0] - Major Release (Feature / Quality Update)
55

6-
## Features
6+
### Breaking changes ###
7+
- **NOTE:** Changes have been made on how phpmyadmin/phppgadmin config are included in apache2 config. To restore to the old behaviour add `IncludeOptional conf.d/*.inc` below `IncludeOptional conf.d/*.conf` in /etc/apache2/apache2.conf and restart your server.
8+
- **NOTE:** Hestia packages for arm64 has been added to atp.hestiacp.com please use the normal install instructions instead! For current ARM installs to enable auto update remove the `#` in /etc/apt/sources.list.d/hestia.list `# deb https://apt.hestiacp.com/ focal main` becomes `deb https://apt.hestiacp.com/ focal main` and then run `apt update && apt upgrade -y`
9+
10+
### Features
711

8-
- Add support for Dovecote Sieve #2163 (@2163)
12+
- Add support for Dovecote Sieve #2163 (@gejobj)
913
- Improve HELO based system and use RDNS lookup instead our old system
14+
- Add support for PHP 8.1 #2233
1015
- Set default php version for new installs to PHP 8.0
16+
- Add support for ARM64 Processors
17+
- Disable access phpmyadmin/phppgadmin over ip address in Apache2 #2072
1118

1219
### Bugfixes
1320

14-
- Disable /reset/ endpoint when POLICY_SYSTEM_PASSWORD_RESET = no
15-
- Add rate limit forgot password
21+
- Disable /reset/ endpoint when POLICY_SYSTEM_PASSWORD_RESET = no #2167
22+
- Add rate limit forgot password #2199
1623
- Prevent SOA count up after v-change-dns-records with no changes are made
17-
- Fix #1296 Logrotate does not rotate logs any more on Ubuntu 20.04 and Debian 11
24+
- Fix #1296 Log rotate does not rotate logs any more on Ubuntu 20.04 and Debian 11
1825
- Run shellcheck to improve code quality
1926
- Improve ssh port detection for filemanager. Allowing users to create /etc/ssh/sshd.conf.d/custom.conf with custom port
2027
- Fix an bug in v-add-letsencrypt-host due to changes of Lets Encrypt causing issues with rate limiting
@@ -25,16 +32,19 @@ All notable changes to this project will be documented in this file.
2532
- Update permissions /var/log/roundcube on older installations #2173
2633
- Update translations
2734
- Fix Roundcube permissions
28-
- Add webp to list of media formats that can be cached by the browser
35+
- Add .webp to list of media formats that can be cached by the browser
2936
- Disable /list/log/auth when in Demo mode
3037
- Fix #1139 By force rebuilding webmail config files
38+
- Fix a bug in rebuild mysql database @depca
39+
- Fix #1239 Bug in basic auth not working properly
40+
- Add validation for email address before install server for admin account
41+
- Fix bug in v-change-domain-owner #2210
42+
- Improve input validation Add / Edit User package and improve reading config files to prevent security issues.
43+
3144

3245
### Dependencies
3346

3447
- Update Roundcube to 1.5.0 https://roundcube.net/news/2021/10/18/roundcube-1.5.0-released
35-
36-
### Security
37-
3848
- Update jQuery UI to the last version [CVE-2021-41182](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41182)
3949

4050
## [1.4.17] - Service release

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22

33
[Hestia Control Panel](https://www.hestiacp.com/)
44
==================================================
5-
**Latest stable release:** Version 1.4.17 | [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.0 | [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>
99
**Forums:** [forum.hestiacp.com](https://forum.hestiacp.com/)<br>
1010
**Discord:** [Join the discussion](https://discord.gg/nXRUZch)<br />
11-
<br><br>
12-
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ST87LQH2CHGLA)
1311
<br>
12+
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ST87LQH2CHGLA)<br /><br />
13+
Bitcoin : bc1q48jt5wg5jaj8g9zy7c3j03cv57j2m2u5anlutu<br>
14+
Ethereum : 0xfF3Dd2c889bd0Ff73d8085B84A314FC7c88e5D51<br>
15+
Binance: bnb1l4ywvw5ejfmsgjdcx8jn5lxj7zsun8ktfu7rh8<br>
16+
Smart Chain: 0xfF3Dd2c889bd0Ff73d8085B84A314FC7c88e5D51<br>
1417

1518
**Welcome!**
1619
----------------------------
@@ -21,20 +24,30 @@ Features and Services
2124
* Apache2 and NGINX with PHP-FPM
2225
* Multiple PHP versions (5.6 - 8.1, 8.0 as default)
2326
* DNS Server (Bind) with clustering capabilities
24-
* POP/IMAP/SMTP mail services with Anti-Virus, Anti-Spam, and Webmail (ClamAV, SpamAssassin, Roundcube, Rainloop)
27+
* POP/IMAP/SMTP mail services with Anti-Virus, Anti-Spam, and Webmail (ClamAV, SpamAssassin, Sieve, Roundcube, Rainloop)
2528
* MariaDB and/or PostgreSQL databases
2629
* Let's Encrypt SSL support with wildcard certificates
2730
* Firewall with brute-force attack detection and IP lists (iptables, fail2ban, and ipset).
2831

2932
Supported platforms and operating systems
33+
========================================================
34+
35+
AMD (x86_64 Intel/AMD)
3036
----------------------------
31-
* **CPU Architecture:** AMD64 (x86_64 Intel/AMD)
3237
* **Debian:** 11, 10 or 9
3338
* **Ubuntu:** 20.04 LTS or 18.04 LTS
34-
* **NOTE:** Hestia Control Panel must be installed on top of a fresh operating system installation to ensure proper functionality.
39+
40+
ARM64 (arm64)
41+
----------------------------
42+
* **Debian:** 11, 10
43+
* **Ubuntu:** 20.04 LTS
44+
* **NOTE:** ARM 64 bit processors only! ARM 32bit (armhf) is currently not supported!
3545

3646
Installing Hestia Control Panel
3747
============================
48+
49+
* **NOTE:** Hestia Control Panel must be installed on top of a fresh operating system installation to ensure proper functionality.
50+
3851
While we have taken every effort to make the installation process and the control panel interface as friendly as possible (even for new users), it is assumed that you will have some prior knowledge and understanding in the basics how to set up a Linux server before continuing.
3952

4053
## Step 1: Log in

bin/v-add-letsencrypt-domain

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -505,14 +505,19 @@ fi
505505
if [ -z "$mail" ]; then
506506
ssl_home=$(search_objects 'web' 'LETSENCRYPT' 'yes' 'SSL_HOME')
507507
ssl_enabled="$(get_object_value 'web' 'DOMAIN' "$domain" '$SSL')"
508-
ssl_force="$(get_object_value 'web' 'DOMAIN' "$domain" '$SSL_FORCE')"
509-
[[ "$ssl_enabled" = "yes" ]] && $BIN/v-delete-web-domain-ssl $user $domain > /dev/null 2>&1
510-
$BIN/v-add-web-domain-ssl "$user" "$domain" "$ssl_dir" "$ssl_home" updatessl
511-
[[ "$ssl_force" = "yes" ]] && $BIN/v-add-web-domain-ssl-force "$user" "$domain" > /dev/null 2>&1
512-
else
508+
if [ "$ssl_enabled" = "yes" ]; then
509+
$BIN/v-update-web-domain-ssl "$user" "$domain" "$ssl_dir" "$ssl_home" "updatessl"
510+
else
511+
$BIN/v-add-web-domain-ssl "$user" "$domain" "$ssl_dir" "$ssl_home" "updatessl"
512+
fi
513+
else
514+
# TODO replace with v-update-mail-domain-ssl if ssl is enabled
513515
ssl_enabled="$(get_object_value 'mail' 'DOMAIN' "$root_domain" '$SSL')"
514-
[[ "$ssl_enabled" = "yes" ]] && $BIN/v-delete-mail-domain-ssl "$user" "$root_domain" > /dev/null 2>&1
515-
$BIN/v-add-mail-domain-ssl "$user" "$root_domain" "$ssl_dir" updatessl
516+
if [ "$ssl_enabled" = "yes" ]; then
517+
$BIN/v-update-mail-domain-ssl "$user" "$root_domain" "$ssl_dir" "$ssl_home" "updatessl"
518+
else
519+
$BIN/v-add-mail-domain-ssl "$user" "$root_domain" "$ssl_dir" "$ssl_home" "updatessl"
520+
fi
516521
fi
517522

518523
if [ "$?" -ne '0' ]; then

bin/v-add-web-domain-ssl-force

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: Adding force SSL for a domain
3-
# options: USER DOMAIN
3+
# options: USER DOMAIN [RESTART] [QUIET]
44
# labels: hestia web
55
#
66
# example: v-add-web-domain-ssl-force admin acme.com
@@ -15,8 +15,9 @@
1515
# Argument definition
1616
user=$1
1717
domain=$2
18-
quiet=$3
19-
restart="$4"
18+
restart="$3"
19+
quiet="$4"
20+
2021

2122
# Includes
2223
# shellcheck source=/etc/hestiacp/hestia.conf

bin/v-add-web-domain-ssl-hsts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: Adding hsts to a domain
3-
# options: USER DOMAIN
3+
# options: USER DOMAIN [RESTART] [QUIET]
44
# labels: hestia
55
#
66
# The function enables HSTS for the requested domain.
@@ -13,8 +13,8 @@
1313
# Argument definition
1414
user=$1
1515
domain=$2
16-
quiet=$3
17-
restart="$4"
16+
restart="$3"
17+
quiet="$4"
1818

1919
# Includes
2020
# shellcheck source=/etc/hestiacp/hestia.conf

bin/v-delete-mail-domain-ssl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Argument definition
1515
user=$1
1616
domain=$2
17+
restart=$3
1718

1819
# Includes
1920
# shellcheck source=/etc/hestiacp/hestia.conf

bin/v-delete-web-domain-ssl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ if [ -n "$PROXY_SYSTEM" ] && [ -n "$PROXY" ]; then
6565
fi
6666

6767
# Deleting old certificate
68-
tmpdir=$(mktemp -p $HOMEDIR/$user/web/$domain/private -d)
6968
rm -f $HOMEDIR/$user/conf/web/$domain/ssl/$domain.*
70-
mv $USER_DATA/ssl/$domain.* $tmpdir
71-
chown -R $user:$user $tmpdir
69+
rm -f $USER_DATA/ssl/$domain.*
7270

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

bin/v-delete-web-domain-ssl-force

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: remove ssl force from domain
3-
# options: USER DOMAIN [RESTART]
3+
# options: USER DOMAIN [RESTART] [QUIET]
44
# labels: hestia web
55
#
66
# example: v-delete-web-domain-ssl-force admin domain.tld
@@ -15,8 +15,8 @@
1515
# Argument definition
1616
user=$1
1717
domain=$2
18-
restart=$3
19-
quiet=$4
18+
restart="$3"
19+
quiet="$4"
2020

2121
# Includes
2222
# shellcheck source=/etc/hestiacp/hestia.conf

bin/v-delete-web-domain-ssl-hsts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: remove ssl force from domain
3-
# options: USER DOMAIN [RESTART]
3+
# options: USER DOMAIN [RESTART] [QUIET]
44
# labels: hestia
55
#
66
# example: v-delete-web-domain-ssl-hsts user domain.tld

bin/v-rebuild-web-domains

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fi
112112
for domain in $($BIN/v-list-web-domains $user plain |cut -f 1); do
113113
if [ -n "$WEB_BACKEND" ]; then
114114
template=$(get_object_value 'web' 'DOMAIN' "$domain" '$BACKEND');
115-
if [ -n "$template" ]; then
115+
if [ -z "$template" ]; then
116116
template="default"
117117
update_object_value 'web' 'DOMAIN' "$domain" '$BACKEND' 'default'
118118
fi

0 commit comments

Comments
 (0)