preinst revision 6253
1310N/A#!/bin/bash
1310N/Aset -e
1310N/A# Pre installation script
1310N/A# If the server is running before upgrade, creates a flag.
1310N/Aif [ "$1" = "upgrade" ]
1310N/Athen
1310N/A if [ -f @prefix@/logs/server.pid ]
1310N/A then
1310N/A touch @prefix@/logs/status
1310N/A fi
1310N/A echo *Stopping OpenDJ server...
1310N/A @prefix@/bin/./stop-ds
1310N/Afi
1310N/Aecho
1310N/A# End of the pre installation script