| 123456789101112131415161718192021222324252627 |
- #!/bin/bash
- set -e
- if [ "$1" != "configure" ]; then
- exit 0
- fi
- # Run triggers below only on updates
- if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
- exit
- fi
- ###############################################################
- # Initialize functions/variables #
- ###############################################################
- # Load upgrade functions and variables
- source /usr/local/hestia/func/main.sh
- source /usr/local/hestia/func/upgrade.sh
- source /usr/local/hestia/conf/hestia.conf
- source /usr/local/hestia/install/upgrade/upgrade.conf
- # Restart hestia service
- if [ -f "/etc/init.d/hestia" ]; then
- systemctl restart hestia > /dev/null 2>&1
- fi
|