You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2014/04/25 01:05:18 UTC

[09/50] git commit: HAD-628. wdd-namenode-nonstop shouldn't fail if %preun phase isn't successful

HAD-628. wdd-namenode-nonstop shouldn't fail if %preun phase isn't successful


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/227af3b7
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/227af3b7
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/227af3b7

Branch: refs/heads/master
Commit: 227af3b7d8567531205b41df18fd0c0a8f1f2f87
Parents: 551240c
Author: Konstantin Boudnik <co...@apache.org>
Authored: Fri Nov 15 15:43:45 2013 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Fri Nov 15 15:43:45 2013 -0800

----------------------------------------------------------------------
 .../rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/227af3b7/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec b/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec
index aed9b1f..9caef88 100644
--- a/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec
+++ b/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec
@@ -114,7 +114,7 @@ sed -e 's#namenode|secondarynamenode|datanode|journalnode|dfs|dfsadmin|fsck|bala
 %__chmod 755 %{lib_hadoop}/sbin/hadoop-nonstop-daemon.sh
 
 ## FIXME: This is a hacking way to deal with 3rd party reliance on HDFS NN service script
-mv %{initd_dir}/hadoop-hdfs-namenode %{initd_dir}/hadoop-hdfs-namenode.orig
+mv -f %{initd_dir}/hadoop-hdfs-namenode %{initd_dir}/hadoop-hdfs-namenode.orig
 ln -s %{initd_dir}/hadoop-hdfs-nonstop %{initd_dir}/hadoop-hdfs-namenode
 for service in hadoop-hdfs-nonstop
 do
@@ -125,8 +125,8 @@ do
 done
 
 %preun
-rm %{initd_dir}/hadoop-hdfs-namenode
-mv %{initd_dir}/hadoop-hdfs-namenode.orig %{initd_dir}/hadoop-hdfs-namenode
+rm -f %{initd_dir}/hadoop-hdfs-namenode
+mv -f %{initd_dir}/hadoop-hdfs-namenode.orig %{initd_dir}/hadoop-hdfs-namenode
 for service in hadoop-hdfs-nonstop
 do
   if [ $1 -eq 0 ]; then