You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2013/08/23 21:26:39 UTC

git commit: AMBARI-2996. Ambari use of /home can cause problems (Vitaly Brodetskyi via dlysnichenko)

Updated Branches:
  refs/heads/trunk 74eab8d6f -> fc0da06dd


AMBARI-2996. Ambari use of /home can cause problems (Vitaly Brodetskyi via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/fc0da06d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/fc0da06d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/fc0da06d

Branch: refs/heads/trunk
Commit: fc0da06dd92f898c3d7932075a9302c7cd74b40e
Parents: 74eab8d
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Fri Aug 23 22:25:04 2013 +0300
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Fri Aug 23 22:25:04 2013 +0300

----------------------------------------------------------------------
 ambari-agent/src/main/package/rpm/preinstall.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/fc0da06d/ambari-agent/src/main/package/rpm/preinstall.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/rpm/preinstall.sh b/ambari-agent/src/main/package/rpm/preinstall.sh
index a8ad3ea..2897771 100644
--- a/ambari-agent/src/main/package/rpm/preinstall.sh
+++ b/ambari-agent/src/main/package/rpm/preinstall.sh
@@ -19,7 +19,7 @@ then
 fi
 
 getent group puppet >/dev/null || groupadd -r puppet
-getent passwd puppet >/dev/null || /usr/sbin/useradd -g puppet puppet
+getent passwd puppet >/dev/null || /usr/sbin/useradd -g puppet -M -d / puppet
 
 BAK=/etc/ambari-agent/conf/ambari-agent.ini.old
 ORIG=/etc/ambari-agent/conf/ambari-agent.ini