Skip to content

Commit bca0496

Browse files
committed
Merge branch 'staging/1.4.6' into main
2 parents 0197444 + fb7de6b commit bca0496

File tree

27 files changed

+23
-8
lines changed

27 files changed

+23
-8
lines changed

CHANGELOG.md

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

4-
## Development
4+
## [1.4.6] - Service release
55

66
### Features
77

8+
- Add support for custom install hooks #1757
9+
- Add template for CraftCMS #1973 @anvme
10+
- Upgrade Filegator to 7.6.0
11+
812
### Bugfixes
913

1014
- Fix #1961 Renewal Apache2 only SSL certificate fails

bin/v-add-sys-pma-sso

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ apikey=$($BIN/v-generate-api-key);
7676
# copy config dir to /usr/share/phpmyadmin/
7777
cp -f $HESTIA_INSTALL_DIR/phpmyadmin/hestia-sso.php $PMA_INSTALL/hestia-sso.php
7878
chmod 640 $PMA_INSTALL/hestia-sso.php
79+
chown root:www-data $PMA_INSTALL/hestia-sso.php
7980

8081
sed -i "s/%PHPMYADMIN_KEY%/$phpmyadminkey/g" $PMA_INSTALL/hestia-sso.php
8182
sed -i "s/%API_KEY%/$apikey/g" $PMA_INSTALL/hestia-sso.php

bin/v-change-web-domain-backend-tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if [ ! -z "$CUSTOM_DOCROOT" ]; then
8888
fi
8989

9090
# Checking backend pool configuration
91-
if [ "$backend_type" = "$user" ]; then
91+
if [[ "$backend_type" = "$user" && $WEB_BACKEND_POOL = 'user' ]]; then
9292
conf=$USER_DATA/web.conf
9393
fields='$DOMAIN'
9494
nohead=1

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
2323
VERBOSE='no'
2424

2525
# Define software versions
26-
HESTIA_INSTALL_VER='1.4.6~alpha'
26+
HESTIA_INSTALL_VER='1.4.6'
2727
pma_v='5.1.1'
2828
rc_v="1.4.11"
2929
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
2323
VERBOSE='no'
2424

2525
# Define software versions
26-
HESTIA_INSTALL_VER='1.4.6~alpha'
26+
HESTIA_INSTALL_VER='1.4.6'
2727
pma_v='5.1.1'
2828
rc_v="1.4.11"
2929
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")

install/upgrade/upgrade.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ rc_v="1.4.11"
6060
rl_v="1.16.0"
6161

6262
# Set version of File manager to update during upgrade if not already installed
63-
fm_v="7.5.2"
63+
fm_v="7.6.0"

install/upgrade/versions/1.4.6.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
####### Place additional commands below. #######
77
#######################################################################################
88

9-
if [ -z "$DB_PMA_ALIAS" ]; then
9+
if [ ! -z "$DB_PMA_ALIAS" ]; then
1010
$HESTIA/bin/v-change-sys-db-alias 'pma' $DB_PMA_ALIAS
11+
rm -rf /usr/share/phpmyadmin/tmp/*
1112
fi

src/deb/hestia/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia
22
Package: hestia
33
Priority: optional
4-
Version: 1.4.6~alpha
4+
Version: 1.4.6
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/hestia/postinst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ upgrade_init_backup
3636
# Initialize logging
3737
upgrade_init_logging
3838

39+
# Check if preinstall hook exists
40+
if [ -e "/etc/hestiacp/hooks/pre_install.sh" ]; then
41+
/etc/hestiacp/hooks/pre_install.sh
42+
fi
43+
3944
# Set up console display and welcome message
4045
upgrade_welcome_message_log >> $LOG
4146
upgrade_welcome_message
@@ -92,4 +97,8 @@ upgrade_send_notification_to_panel
9297
upgrade_send_notification_to_email
9398
upgrade_send_log_to_email
9499

100+
if [ -e "/etc/hestiacp/hooks/post_install.sh" ]; then
101+
/etc/hestiacp/hooks/post_install.sh
102+
fi
103+
95104
exit 0

src/deb/hestia/preinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ HESTIA_V=$(dpkg -s hestia | grep -i version | awk '{ print $2 }')
1818

1919
if [ ! "$HESTIA_V" = "$VERSION" ]; then
2020
sed -i "s/VERSION=.*/VERSION='$HESTIA_V'/g" /usr/local/hestia/conf/hestia.conf
21-
fi
21+
fi

0 commit comments

Comments
 (0)