modified: clusterware/linux/DEBIAN/hc-clusterware-platform/postinst modified: clusterware/linux/DEBIAN/hc-clusterware-platform/postrm modified: exadata/linux/DEBIAN/hc-exadata-platform/postinst modified: exadata/linux/DEBIAN/hc-exadata-platform/postrm modified: serviceguard/linux/DEBIAN/hc-serviceguard-platform/postinst modified: serviceguard/linux/DEBIAN/hc-serviceguard-platform/postrm
17 lines
619 B
Bash
Executable File
17 lines
619 B
Bash
Executable File
#!/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"
|