Skip to content

Commit 9d61c29

Browse files
committed
Move preinstall hook
1 parent 2a37d1b commit 9d61c29

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/deb/hestia/postinst

Lines changed: 5 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

src/deb/hestia/preinst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ HESTIA_V=$(dpkg -s hestia | grep -i version | awk '{ print $2 }')
1919
if [ ! "$HESTIA_V" = "$VERSION" ]; then
2020
sed -i "s/VERSION=.*/VERSION='$HESTIA_V'/g" /usr/local/hestia/conf/hestia.conf
2121
fi
22-
23-
if [ -e "/etc/hestiacp/hooks/pre_install.sh" ]; then
24-
/etc/hestiacp/hooks/pre_install.sh
25-
fi

0 commit comments

Comments
 (0)