mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
30 lines
737 B
Bash
30 lines
737 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$1" != "configure" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Run triggers below only on updates
|
|
if [ ! -e "/usr/local/phyre/data/users/admin" ]; then
|
|
exit
|
|
fi
|
|
|
|
###############################################################
|
|
# Initialize functions/variables #
|
|
###############################################################
|
|
|
|
if [ -z "$PHYRE" ]; then
|
|
export PHYRE='/usr/local/phyre'
|
|
PATH=$PATH:/usr/local/phyre/bin
|
|
export PATH
|
|
fi
|
|
|
|
# Restart hestia-web-terminal service if enabled
|
|
if [ -f "/etc/systemd/system/phyre-web-terminal.service" ]; then
|
|
systemctl daemon-reload > /dev/null 2>&1
|
|
if systemctl is-enabled phyre-web-terminal > /dev/null 2>&1; then
|
|
systemctl restart phyre-web-terminal
|
|
fi
|
|
fi
|