286N/A# Install is launched with an empty second arg. 286N/A# If the package is already installed, 286N/A# the second arg. is not empty. 286N/A# Symlinks to process ID 286N/A# In this case, we are in upgrade mode. 286N/Aif [
"$1" =
"configure" ] && [ ! -z
"$2" ]
286N/A# For being secure, we check the buildinfo file too. 286N/A# Upgrade fails - Requires mandatory user interaction. 286N/A# Nevertheless, exits successfully of the pkg process. 286N/A# Restarts the service if needed. 286N/A# If server is stopped by upgrade process, 286N/A# the server will restart after upgrade. 286N/A# If server is stopped before the upgrade process 286N/A# (eg. upgrade the new package), the server will not restart. 286N/A# Uses the flag for determining server status at this point. 286N/A echo "*Restarting server..." 286N/A# Invalid installation, could not find the buildinfo file. 286N/A echo "Invalid installation, could not find the build info file." 286N/A# End post install script