summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Landau <alex.landau@xorcom.com>2008-12-28 12:05:08 +0000
committerAlex Landau <alex.landau@xorcom.com>2008-12-28 12:05:08 +0000
commitf6ba7fc808c6e02fe27a794a9f613e200002c535 (patch)
treeb5aaecbbe4002d619d85a2731e0dc52341fbb6e1
parentecb7b1ddf0445eafea9242c5b5062d5975ac1de7 (diff)
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
-rw-r--r--debian/rapid-tunneling-server.postinst2
-rw-r--r--rapid-tunneling.spec2
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