freebsd-ports/www/openacs/files/pkg-deinstall.in
Sam Lawrance 5e8b63668f - Fix post-install configuration so the port and package have the same
behaviour.  This change only affects a non-default option, so bumping
portrevision would have no effect.
- Change some wording in pkg-message.

PR:		ports/84595
Submitted by:	Aldert Nooitgedagt <aldert@nooitgedagt.net> (maintainer)
2005-09-09 04:44:38 +00:00

24 lines
741 B
Bash

#! /bin/sh
PATH=$PATH:/bin:/usr/bin:/usr/sbin
case $2 in
POST-DEINSTALL)
echo "You are deinstalling this port:"
echo " Remember to kill the associated Aolserver process in case"
echo " you've changed the standard."
echo " We will try to kill the standard now:"
pid=`ps -ax | grep %%OPENACS_USER%%/etc/config.tcl | grep -v grep| awk -F' ' '{print $1}'`;
if test "$pid" = "" ; then
echo " No %%OPENACS_USER%% process found."
else
echo " Killing %%OPENACS_USER%% proces. pid: $pid . "
kill $pid
fi
echo " If no other openACS/.LRN instance needs it, you may want to "
echo " delete %%VIRTUALBASE%%/aolserver and %%VIRTUALBASE%% manually, "
echo " and possibly the %%OPENACS_USER%% users and database. "
;;
esac