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