postinst revision c3f0280853296f99f4d9241751093e7be5b6c55e
a5b9f8fb834b1b2208e59a2fa76714bd91a5f147violette# Post install script
1cd2872b696c4bdfb7694da53883d02de3360e12violette# Install is launched with an empty second arg.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# If the package is already installed,
1cd2872b696c4bdfb7694da53883d02de3360e12violette# the second arg. is not empty.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# In this case, we are in upgrade mode.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# For being secure, we check the buildinfo file too.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# Upgrade fails - Requires mandatory user interaction.
054848749d97535e9e1d5da4504079ac684f141bviolette# Nevertheless, exits successfully of the pkg process.
054848749d97535e9e1d5da4504079ac684f141bviolette# Restarts the service if needed.
054848749d97535e9e1d5da4504079ac684f141bviolette# If server is stopped by upgrade process,
054848749d97535e9e1d5da4504079ac684f141bviolette# the server will restart after upgrade.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# If server is stopped before the upgrade process
1cd2872b696c4bdfb7694da53883d02de3360e12violette# (eg. upgrade the new package), the server will not restart.
1cd2872b696c4bdfb7694da53883d02de3360e12violette# Uses the flag for determining server status at this point.
1cd2872b696c4bdfb7694da53883d02de3360e12violette echo "*Restarting server..."
1cd2872b696c4bdfb7694da53883d02de3360e12violette# Invalid installation, could not find the buildinfo file.
c3f0280853296f99f4d9241751093e7be5b6c55eviolette echo "Invalid installation, could not find the build info file."
a5b9f8fb834b1b2208e59a2fa76714bd91a5f147violette# End post install script