preun commands should be run when upgrading as well as uninstalling a
authorSteve Muir <smuir@cs.princeton.edu>
Mon, 1 Dec 2003 22:16:47 +0000 (22:16 +0000)
committerSteve Muir <smuir@cs.princeton.edu>
Mon, 1 Dec 2003 22:16:47 +0000 (22:16 +0000)
package

pl_sshd.spec

index 18fddff..8729eab 100644 (file)
@@ -13,7 +13,7 @@ SSH server configuration for PlanetLab nodes.  Configures an automounted
 directory as source for authorized_keys files and points sshd to that
 directory.
 
 directory as source for authorized_keys files and points sshd to that
 directory.
 
-$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.2 2003/12/01 14:56:00 sjm-pl_sshd Exp $.
+$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.3 2003/12/01 21:22:53 sjm-pl_sshd Exp $.
 %prep
 %setup
 
 %prep
 %setup
 
@@ -80,7 +80,7 @@ fi
 %preun
 RUNLEVEL=`/sbin/runlevel`
 
 %preun
 RUNLEVEL=`/sbin/runlevel`
 
-if [ "$1" = 0 ]; then
+if [ "$1" -ge "0" ]; then
        #
        # stop pl_sshd, remove it from rcX.d init dirs, remove link
        # to sshd's pam config
        #
        # stop pl_sshd, remove it from rcX.d init dirs, remove link
        # to sshd's pam config