Skip to content

Commit af6e9ca

Browse files
author
Kristan Kenney
committed
Merge branch 'main' into feature/package-management
2 parents 814ef46 + 470136f commit af6e9ca

File tree

11 files changed

+37
-14
lines changed

11 files changed

+37
-14
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ All notable changes to this project will be documented in this file.
4343
- Fixed xss vulnerability in v-add-sys-ip and user history log (thanks **@numanturle**)
4444
- Fixed remote execution possibility when deleting ssh key (thanks **@numanturle**)
4545

46+
## [1.3.4] - Service Release
47+
### Features
48+
- No new features have been introduced in this release.
49+
50+
### Bugfixes
51+
- Fixed xss vulnerability in v-add-sys-ip and user history log (thanks **@numanturle**)
52+
- Fixed remote execution possibility when deleting ssh key (thanks **@numanturle**)
53+
4654
## [1.3.3] - Service Release
4755
### Bugfixes
4856
- Improved if web folder already exists and do not follow symlink on chmod (thanks @0xGsch and @kikoas1995).

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.3.3 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
5+
**Latest stable release:** Version 1.3.4 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<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-filemanager

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ MODE=$1
1919
user="admin"
2020

2121
FM_INSTALL_DIR="$HESTIA/web/fm"
22-
FM_FILE="filegator_v${FM_V}.zip"
23-
FM_URL="https://github.com/filegator/filegator/releases/download/v${FM_V}/${FM_FILE}"
22+
FM_FILE="filegator_v${fm_v}.zip"
23+
FM_URL="https://github.com/filegator/filegator/releases/download/v${fm_v}/${FM_FILE}"
2424
COMPOSER_BIN="$HOMEDIR/$user/.composer/composer"
2525

2626

bin/v-add-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ source $HESTIA/conf/hestia.conf
4242
#----------------------------------------------------------#
4343

4444
check_args '2' "$#" 'IP NETMASK [INTERFACE] [USER] [STATUS] [NAME] [NATED_IP] [HELO]'
45-
is_format_valid 'ip' 'netmask' 'interface' 'user' 'ip_status'
45+
is_format_valid 'ip' 'netmask' 'iface' 'user' 'ip_status'
4646
is_ip_free
4747
is_object_valid 'user' 'USER' "$user"
4848
is_object_unsuspended 'user' 'USER' "$user"

bin/v-delete-sys-filemanager

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ source $HESTIA/conf/hestia.conf
1919

2020
user='admin'
2121
FM_INSTALL_DIR="$HESTIA/web/fm"
22-
FM_V="7.4.1"
2322
COMPOSER_BIN="$HOMEDIR/$user/.composer/composer"
2423

2524
#----------------------------------------------------------#

func/main.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,6 @@ is_format_valid() {
962962
host) is_object_format_valid "$arg" "$arg_name" ;;
963963
hour) is_cron_format_valid "$arg" $arg_name ;;
964964
id) is_int_format_valid "$arg" 'id' ;;
965-
interface) is_interface_format_valid "$arg" ;;
966965
iface) is_interface_format_valid "$arg" ;;
967966
ip) is_ip_format_valid "$arg" ;;
968967
ip_name) is_domain_format_valid "$arg" 'IP name';;

func/upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ upgrade_roundcube(){
650650
if [ ! -z "$(echo "$WEBMAIL_SYSTEM" | grep -w 'roundcube')" ]; then
651651
rc_version=$(cat /var/lib/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
652652
if [ "$rc_version" == "$rc_v" ]; then
653-
echo "[ * ] Upgrading RoundCube to version v$rc_v..."
653+
echo "[ * ] Upgrading Roundcube to version v$rc_v..."
654654
$HESTIA/bin/v-add-sys-roundcube
655655
fi
656656
fi
@@ -662,7 +662,7 @@ upgrade_rainloop(){
662662
if [ ! -z "$(echo "$WEBMAIL_SYSTEM" | grep -w 'rainloop')" ]; then
663663
rc_version=$(cat /var/lib/rainloop/data/VERSION);
664664
if [ "$rc_version" == "$rc_v" ]; then
665-
echo "[ * ] Upgrading rainloop to version v$rc_v..."
665+
echo "[ * ] Upgrading Rainloop to version v$rl_v..."
666666
$HESTIA/bin/v-add-sys-rainloop
667667
fi
668668
fi

install/deb/filemanager/install-fm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fi
1313
user='admin'
1414
fm_error='no'
1515
source $HESTIA/func/main.sh
16+
source $HESTIA/install/upgrade/upgrade.conf
1617

1718
if [ -z "$HOMEDIR" ] || [ -z "$HESTIA_INSTALL_DIR" ]; then
1819
echo "Error: Hestia environment vars not present"
@@ -21,9 +22,8 @@ fi
2122

2223
FM_INSTALL_DIR="$HESTIA/web/fm"
2324

24-
FM_V="7.4.1"
25-
FM_FILE="filegator_v${FM_V}.zip"
26-
FM_URL="https://github.com/filegator/filegator/releases/download/v${FM_V}/${FM_FILE}"
25+
FM_FILE="filegator_v${fm_v}.zip"
26+
FM_URL="https://github.com/filegator/filegator/releases/download/v${fm_v}/${FM_FILE}"
2727

2828

2929
COMPOSER_BIN="$HOMEDIR/$user/.composer/composer"

install/upgrade/upgrade.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ UPGRADE_UPDATE_RAINLOOP='true'
3636

3737
# Update the File Manager or it's configuration file
3838
# UPGRADE_UPDATE_FILEMANAGER: Performs an upgrade/repair install of the File Manager
39-
# UPGRADE_UPDATE_FILEMANAGER: Updates only the configuration file
39+
# UPGRADE_UPDATE_FILEMANAGER_CONFIG: Updates only the configuration file
4040
UPGRADE_UPDATE_FILEMANAGER='true'
4141
UPGRADE_UPDATE_FILEMANAGER_CONFIG='false'
4242

@@ -59,4 +59,4 @@ rc_v="1.4.11"
5959
rl_v="1.15.0"
6060

6161
# Set version of File manager to update during upgrade if not already installed
62-
FM_V="7.5.0"
62+
fm_v="7.5.0"

install/upgrade/versions/1.3.4.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.3.4
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
9+
echo '[ * ] Updating System Administrator account permissions...'
10+
$HESTIA/bin/v-change-user-role admin admin
11+
12+
# Send end-of-life notification to admin user on servers running Ubuntu 16.04
13+
if [ "$OS_TYPE" = "Ubuntu" ]; then
14+
if [ "$OS_VERSION" = '16.04' ]; then
15+
$HESTIA/bin/v-add-user-notification admin 'IMPORTANT: End of support for Ubuntu 16.04 LTS' '<b>Hestia Control Panel no longer supports Ubuntu 16.04 LTS</b>, as a result your server will no longer receive upgrades or security patches after <b>v1.3.4</b>.<br><br>Please upgrade to a supported operating system.'
16+
fi
17+
fi

0 commit comments

Comments
 (0)