From cf42de70c84632bcee5d6d545b1242f14a73c618 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 5 Jan 2011 16:22:06 -0500 Subject: Swoop through and stop any packages prior to upgrade. Ticket #1156 --- tmp/pre_upgrade_command | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tmp') diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command index 3eabc5f..5cad8b5 100644 --- a/tmp/pre_upgrade_command +++ b/tmp/pre_upgrade_command @@ -2,6 +2,11 @@ /etc/rc.conf_mount_rw +# Stop any packages prior to upgrade +for FILE in /usr/local/etc/rc.d/*.sh; do + $FILE stop +done + # Record the previous version PRIOR_VERSION=`uname -r | cut -d'.' -f1` echo $PRIOR_VERSION > /tmp/pre_upgrade_version -- cgit v1.1