17 lines
619 B
Bash
17 lines
619 B
Bash
#!/bin/bash
|
|
# ------------------------- CONFIGURATION starts here -------------------------
|
|
# location of check_health.sh
|
|
HC_BIN="/opt/hc/bin/check_health.sh"
|
|
PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin"
|
|
# ------------------------- CONFIGURATION ends here ---------------------------
|
|
echo "INFO: starting post-install script ..."
|
|
# debian: reset ownerships
|
|
chown -R root:root /opt/hc /etc/opt/hc 2>/dev/null
|
|
# refresh symbolic FPATH links
|
|
if [[ -x ${HC_BIN} ]]
|
|
then
|
|
${HC_BIN} --fix-symlinks
|
|
(( $? == 0 )) || echo "WARN: updating symlinks failed"
|
|
fi
|
|
echo "INFO: finished post-install script"
|