summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/set_geo_rep_pem_keys.sh
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2014-05-19 11:55:34 +0000
committerVenky Shankar <vshankar@redhat.com>2014-05-20 03:21:30 -0700
commitf6677d1e307e94a282b3a0194e30785ea88c09bb (patch)
tree23a55846a02d49c641d09b2f2fff1910b1d47f4f /geo-replication/src/set_geo_rep_pem_keys.sh
parent5e2e97300d6e5248bb1c58825e5fe586e93c7cf4 (diff)
glusterd/geo-rep: Use getent passwd instead of $HOME
$HOME might not be set in the env variables, as is the case when these scripts are executed using the runner framework. Hence using getent passwd instead of $HOME Change-Id: I99f6bcd788d727be534b3040600d66c8dbb7ee92 BUG: 1099041 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/7803 Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Kotresh HR <khiremat@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication/src/set_geo_rep_pem_keys.sh')
-rwxr-xr-xgeo-replication/src/set_geo_rep_pem_keys.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/src/set_geo_rep_pem_keys.sh b/geo-replication/src/set_geo_rep_pem_keys.sh
index 16c55ed0a49..7a7bcad25c2 100755
--- a/geo-replication/src/set_geo_rep_pem_keys.sh
+++ b/geo-replication/src/set_geo_rep_pem_keys.sh
@@ -20,7 +20,7 @@ function main()
exit 1;
fi
- home_dir=`getent passwd | grep $user | cut -d ':' -f 6`;
+ home_dir=`getent passwd $user | cut -d ':' -f 6`;
if [ "$home_dir" == "" ]; then
echo "No user $user found"