File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ upgrade_init_backup
3636# Initialize logging
3737upgrade_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
4045upgrade_welcome_message_log >> $LOG
4146upgrade_welcome_message
Original file line number Diff line number Diff line change @@ -19,7 +19,3 @@ HESTIA_V=$(dpkg -s hestia | grep -i version | awk '{ print $2 }')
1919if [ ! " $HESTIA_V " = " $VERSION " ]; then
2020 sed -i " s/VERSION=.*/VERSION='$HESTIA_V '/g" /usr/local/hestia/conf/hestia.conf
2121fi
22-
23- if [ -e " /etc/hestiacp/hooks/pre_install.sh" ]; then
24- /etc/hestiacp/hooks/pre_install.sh
25- fi
You can’t perform that action at this time.
0 commit comments