|
|
@@ -36,6 +36,11 @@ upgrade_init_backup
|
|
|
# Initialize logging
|
|
|
upgrade_init_logging
|
|
|
|
|
|
+# Check if preinstall hook exists
|
|
|
+if [ -e "/etc/hestiacp/hooks/pre_install.sh" ]; then
|
|
|
+/etc/hestiacp/hooks/pre_install.sh
|
|
|
+fi
|
|
|
+
|
|
|
# Set up console display and welcome message
|
|
|
upgrade_welcome_message_log >> $LOG
|
|
|
upgrade_welcome_message
|
|
|
@@ -92,4 +97,8 @@ upgrade_send_notification_to_panel
|
|
|
upgrade_send_notification_to_email
|
|
|
upgrade_send_log_to_email
|
|
|
|
|
|
+if [ -e "/etc/hestiacp/hooks/post_install.sh" ]; then
|
|
|
+ /etc/hestiacp/hooks/post_install.sh
|
|
|
+fi
|
|
|
+
|
|
|
exit 0
|