postinst revision e75c2484bff064fbbf51e92aed4f37b08e6427b7
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Post install script
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Install is launched with an empty second arg.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# If the package is already installed,
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# the second arg. is not empty.
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# In this case, we are in upgrade mode.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# For being secure, we check the buildinfo file too.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# Upgrade fails - Requires mandatory user interaction.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Nevertheless, exits successfully of the pkg process.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# Restarts the service if needed.
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# If server is stopped by upgrade process,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# the server will restart after upgrade.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If server is stopped before the upgrade process
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# (eg. upgrade the new package), the server will not restart.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Uses the flag for determining server status at this point.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater echo "*Restarting server..."
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Invalid installation, could not find the buildinfo file.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater echo "Invalid installation, could not find the build info file."
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# End post install script