From f6ba7fc808c6e02fe27a794a9f613e200002c535 Mon Sep 17 00:00:00 2001 From: Alex Landau Date: Sun, 28 Dec 2008 12:05:08 +0000 Subject: rapid-tunneling: - Don't error if ~support/.bash_profile does not exist. git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6504 283159da-0705-0410-b60c-f2062b4bb6ad --- debian/rapid-tunneling-server.postinst | 2 +- rapid-tunneling.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rapid-tunneling-server.postinst b/debian/rapid-tunneling-server.postinst index a5a3541..18e8b5b 100644 --- a/debian/rapid-tunneling-server.postinst +++ b/debian/rapid-tunneling-server.postinst @@ -23,7 +23,7 @@ case "$1" in useradd -d /var/lib/rapid-tunneling-server -m support 2>/dev/null || : LINE='export PATH=$PATH:/usr/sbin' PROFILE=/var/lib/rapid-tunneling-server/.bash_profile - if ! fgrep -q "$LINE" $PROFILE; then echo "$LINE" >> $PROFILE; fi + if ! fgrep -q "$LINE" $PROFILE 2>/dev/null; then echo "$LINE" >> $PROFILE; fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/rapid-tunneling.spec b/rapid-tunneling.spec index 23bff46..ff04056 100644 --- a/rapid-tunneling.spec +++ b/rapid-tunneling.spec @@ -50,7 +50,7 @@ fi useradd -d /var/lib/rapid-tunneling-server -m support 2>/dev/null || : LINE='export PATH=$PATH:/usr/sbin' PROFILE=/var/lib/rapid-tunneling-server/.bash_profile -if ! fgrep -q "$LINE" $PROFILE; then echo "$LINE" >> $PROFILE; fi +if ! fgrep -q "$LINE" $PROFILE 2>/dev/null; then echo "$LINE" >> $PROFILE; fi /sbin/chkconfig --add sshd_support %preun server -- cgit v1.2.3