2N/A#!/bin/bash
2N/Aset -e
2N/A# Pre rm script
2N/A# Stops the server
2N/A# Only if the instance has been configured
2N/Aif [ "$1" = "remove" ] && ( [ -f @prefix@/config/buildinfo ] && [ "$(ls -A @prefix@/config/archived-configs)" ] )
2N/Athen
2N/A echo *Stopping OpenDJ server...
2N/A @prefix@/bin/./stop-ds
2N/Afi
2N/A# End prem script