Skip to content

Commit 6073811

Browse files
committed
Merge branch 'main' into release
2 parents 15827bd + 2583203 commit 6073811

File tree

278 files changed

+2071
-1558
lines changed

Some content is hidden

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

278 files changed

+2071
-1558
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
kind: pipeline
33
type: ssh
4-
name: HestiaCP + Nginx + Apache2
4+
name: Ubuntu | Nginx + Apache2
55

66
concurrency:
77
limit: 1
@@ -45,7 +45,7 @@ trigger:
4545
---
4646
kind: pipeline
4747
type: ssh
48-
name: HestiaCP + Nginx
48+
name: Debian | Nginx
4949

5050
concurrency:
5151
limit: 1
@@ -109,4 +109,4 @@ trigger:
109109

110110
---
111111
kind: signature
112-
hmac: da6a96c077ec55ccfb27ec8a3250eeb0700153078adf088dc70998b2cd033b28
112+
hmac: e6d1a0d62ad4f5b0b8bed33c248e55e6de60ee9c1601ee5395fe5d5e72942e85

CHANGELOG.md

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

4+
## [1.5.5] - Service release
5+
6+
### Features
7+
8+
- Improve default php-fpm.conf files. (#2318, #2343)
9+
- Notify user when a suspended user tries to login (#2310, #2345)
10+
- Allow setting default web install templates for Quick install (#2344) (https://github.com/hestiacp/hestia-quick-install)
11+
- Improve security how apt keys are downloaded #2299 (https://blog.cloudflare.com/dont-use-apt-key/)
12+
- Allow users to set system php version in Web GUI (#2357)
13+
- Added a link to the firewall in list services (#2371) @fra81
14+
15+
### Changes
16+
17+
- Modify template warning #2346
18+
- Removed 127.0.0.1 from the default accepted ip list api. (#2325)
19+
- Update translations
20+
21+
### Bugfixes
22+
23+
- Update CSS to prevent wrapping in email info box (#2353) @chriscapisce
24+
- Remove unwanted debug information regarding PhpMyAdmin SSO causing emails to be send to administrator
25+
- Allow the use of 8 name servers for DNS templates (Gmail, Zoho and Office 365) (#2369, #2370)
26+
- Fixed an issue where databases where not able to backup if it required custom settings
27+
- Allow users to edit default.pkg again. On new installs the default admin user will get assigned a new system.pkg (#2365)
28+
- Disable enabling PMA SSO when Api was disabled + Added link to FAQ for frequently asked questions. (#2365)
29+
- Remove error_reporting(null) and allow all errors to be logged in /var/log/hestia/nginx-error.log (#2365)
30+
- Fixed an issue where value "Allow suspended wasn't saved" (#2356, #2355)
31+
- Fixed and issue where AUTH_USER and AUTH_HASH was not present and there for during rebuild caused issues with Nginx (#2350, #2355)
32+
33+
### Dependencies
34+
35+
- Update PHPmyadmin to 5.1.2 (https://www.phpmyadmin.net/files/5.1.2/)
36+
- Update Filegator to 7.7.1 (https://github.com/filegator/filegator/releases/tag/v7.7.1)
37+
- Update B2CLI to 3.2.0 (https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.2.0) (#2349) @ptrinh
38+
439
## [1.5.4] - Service release
540

641
### Features

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.3 | [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.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>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
88
**Documentation:** [docs.hestiacp.com](https://docs.hestiacp.com/)<br>

bin/v-add-backup-host

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ path=${5-/backup}
2121
port=$6
2222

2323
# Includes
24-
# shellcheck source=/etc/hestiacp/hestia.conf
25-
source /etc/hestiacp/hestia.conf
2624
# shellcheck source=/usr/local/hestia/func/main.sh
2725
source $HESTIA/func/main.sh
28-
2926
# load config file
3027
source_conf "$HESTIA/conf/hestia.conf"
28+
# Fetch current verison B2 CLI tool
29+
source_conf "$HESTIA/install/upgrade/upgrade.conf"
3130

3231
# Paths
3332
b2cli="/usr/local/bin/b2"
34-
b2lnk="https://f000.backblazeb2.com/file/backblazefiles/b2/cli/linux/b2"
33+
b2lnk="https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/v$b2_v/b2-linux"
3534

3635
# Defining ftp command function
3736
ftpc() {

bin/v-add-sys-pma-sso

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ fi
109109

110110
$BIN/v-change-sys-config-value 'PHPMYADMIN_KEY' "$phpmyadminkey"
111111

112+
if [ "$(echo $API_ALLOWED_IP | grep 127.0.0.1)" != "127.0.0.1" ]; then
113+
$BIN/v-add-sys-api-ip "127.0.0.1"
114+
fi
115+
112116
#----------------------------------------------------------#
113117
# Logging #
114118
#----------------------------------------------------------#

bin/v-add-web-php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ v_tpl=${version//.}
119119
rm -f /etc/php/$version/fpm/pool.d/*
120120
cp -f $HESTIA_INSTALL_DIR/php-fpm/dummy.conf /etc/php/$version/fpm/pool.d/
121121
sed -i "s/9999/99$v_tpl/g" /etc/php/$version/fpm/pool.d/dummy.conf
122+
cp -f $HESTIA_INSTALL_DIR/php-fpm/php-fpm.conf /etc/php/$version/fpm/
123+
sed -i "s/fpm_v/$version/g" /etc/php/$version/fpm/php-fpm.conf
122124

123125
# Install backend template
124126
cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \

bin/v-change-sys-php

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/bin/bash
2+
# info: Change default php version server wide
3+
# options: VERSION
4+
5+
# example: v-change-sys-php 8.0
6+
7+
version=$1
8+
9+
# Includes
10+
# shellcheck source=/etc/hestiacp/hestia.conf
11+
source /etc/hestiacp/hestia.conf
12+
# shellcheck source=/usr/local/hestia/func/main.sh
13+
source $HESTIA/func/main.sh
14+
# load config file
15+
source_conf "$HESTIA/conf/hestia.conf"
16+
17+
#----------------------------------------------------------#
18+
# Variables & Functions #
19+
#----------------------------------------------------------#
20+
21+
check_args '1' "$#" 'VERSION'
22+
23+
# Verify php version format
24+
if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
25+
echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
26+
echo "Example: 7.0, 7.4, 8.0"
27+
exit "$E_INVALID";
28+
fi
29+
30+
# Check if php version exists
31+
version_check=$($HESTIA/bin/v-list-sys-php plain | grep "$version");
32+
if [ -z "$version_check" ] ; then
33+
echo "ERROR: Specified PHP version is not installed."
34+
exit "$E_INVALID";
35+
fi
36+
37+
38+
# Perform verification if read-only mode is enabled
39+
check_hestia_demo_mode
40+
41+
#----------------------------------------------------------#
42+
# Action #
43+
#----------------------------------------------------------#
44+
45+
# Set file locations
46+
php_fpm="/etc/init.d/php$version-fpm"
47+
48+
49+
rm -f /etc/php/*/fpm/pool.d/www.conf
50+
cp -f $HESTIA/install/deb/php-fpm/www.conf /etc/php/$version/fpm/pool.d/www.conf
51+
$HESTIA/bin/v-restart-web-backend
52+
53+
update-alternatives --set php /usr/bin/php$version
54+
55+
#----------------------------------------------------------#
56+
# Hestia #
57+
#----------------------------------------------------------#
58+
59+
log_event "$OK" "$ARGUMENTS"

bin/v-delete-web-php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ fi
4242
[ -f $HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl ] && rm -f $HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl
4343

4444
# Check if php version exists
45-
if [ ! -f "$php_fpm" ] && [ ! -f "$HESTIA/data/templates/$WEB_SYSTEM/PHP-$version.sh" ]; then
45+
version_check=$($HESTIA/bin/v-list-sys-php plain | grep "$version");
46+
if [ -z "$version_check" ] ; then
4647
echo "ERROR: Specified PHP version is not installed."
47-
exit
48+
exit "$E_INVALID";
4849
fi
4950

5051
# Perform verification if read-only mode is enabled

bin/v-get-user-salt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ then
9393
echo "$date $time $user $ip failed to login" >> $HESTIA/log/auth.log
9494
exit 9
9595
fi
96+
elif [[ "$shadow" =~ ! ]]; then
97+
echo "Error: Account has been suspended"
98+
echo "$date $time $user $ip has been suspended" >> $HESTIA/log/auth.log
99+
exit 5
96100
else
97101
salt=${shadow:0:2}
98102
method='des'

bin/v-revoke-api-key

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ source_conf "$HESTIA/conf/hestia.conf"
2424

2525
hash=$1
2626

27+
args_usage='HASH'
28+
check_args '1' "$#" "$args_usage"
29+
is_format_valid 'hash'
30+
2731
# Perform verification if read-only mode is enabled
2832
check_hestia_demo_mode
2933

0 commit comments

Comments
 (0)