From bf240b02f98f6cc4aa904dfcf150da14dbffe6ad Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Tue, 25 Sep 2001 11:10:27 +0000 Subject: [PATCH] fix pre-uninstall script --- openssh/openssh.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openssh/openssh.spec b/openssh/openssh.spec index 72de4a4f98..2812b63ef3 100644 --- a/openssh/openssh.spec +++ b/openssh/openssh.spec @@ -35,7 +35,7 @@ Distribution: OpenPKG [EXP] Group: Cryptography License: BSD Version: %{V_openssh} -Release: 8 +Release: 9 # list of sources Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{V_openssh}.tar.gz @@ -210,8 +210,9 @@ AutoReqProv: no if [ -f /etc/pam.conf ]; then check=`grep "^#" /etc/pam.conf` if [ ".$check" != . ]; then + prefix=`echo $RPM_INSTALL_PREFIX | sed -e 's;/;\\/;g'` cp /etc/pam.conf /etc/pam.conf.tmp && \ - sed -e "/^#/,/^#<\\/OpenPKG>/d" \ + sed -e "/^#/,/^#<\\/OpenPKG>/d" \ /etc/pam.conf && \ rm -f /etc/pam.conf.tmp fi