incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject git commit: AMBARI-2996. Ambari use of /home can cause problems (Vitaly Brodetskyi via dlysnichenko)
Date Fri, 23 Aug 2013 19:26:39 GMT
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 <dlysnichenko@hortonworks.com>
Authored: Fri Aug 23 22:25:04 2013 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@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


Mime
View raw message