Don't require the sysctl file to exist when deleting it

Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1f4070db
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1f4070db
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1f4070db

Branch: refs/heads/trunk
Commit: 1f4070dbf29310962e3d632fe570ec3d8b61f887
Parents: 9eddaa8
Author: Brandon Williams <[email protected]>
Authored: Thu Oct 24 14:46:00 2013 -0500
Committer: Brandon Williams <[email protected]>
Committed: Thu Oct 24 14:46:00 2013 -0500

----------------------------------------------------------------------
 debian/cassandra.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/1f4070db/debian/cassandra.postinst
----------------------------------------------------------------------
diff --git a/debian/cassandra.postinst b/debian/cassandra.postinst
index 9591459..752ff1f 100644
--- a/debian/cassandra.postinst
+++ b/debian/cassandra.postinst
@@ -45,7 +45,7 @@ case "$1" in
             echo "vm.max_map_count to 1048575 in the host." >&2
             echo >&2
             echo "Deleting the local sysctl.d/cassandra.conf." >&2
-            rm -v /etc/sysctl.d/cassandra.conf
+            rm -vf /etc/sysctl.d/cassandra.conf
         fi
     ;;
 

Reply via email to