diff options
Diffstat (limited to 'geo-replication/src/peer_add_secret_pub.in')
-rw-r--r-- | geo-replication/src/peer_add_secret_pub.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geo-replication/src/peer_add_secret_pub.in b/geo-replication/src/peer_add_secret_pub.in index 04dee1b1ea1..aed93991e58 100644 --- a/geo-replication/src/peer_add_secret_pub.in +++ b/geo-replication/src/peer_add_secret_pub.in @@ -1,9 +1,9 @@ #!/bin/bash if [ "$1" == "" ]; then - home_dir=`echo $HOME` + home_dir=`getent passwd root | cut -d ':' -f 6`; else - home_dir=`getent passwd | grep $1 | cut -d ':' -f 6`; + home_dir=`getent passwd $1 | cut -d ':' -f 6`; fi if [ "$home_dir" == "" ]; then |