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