diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2019-06-18 16:25:35 +0530 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2019-06-19 03:20:14 +0000 |
commit | c8f302b7b34b45b2cf340634ed66de899f900c23 (patch) | |
tree | a67828777accb838ddcc1151991f1fc71605063c /geo-replication | |
parent | 2d278f0407ab7d29507dc697653b39d72ddee472 (diff) |
geo-rep: Fix permissions for GEOREP_DIR in non-root setup
During mountbroker setup: 'gluster-mountbroker <mountbroker-root> <group>'
commad to set the permission and group for GEOREP_DIR directory
(/var/lib/glusterd/geo-replication) fails due to extra argument, which is
enssential for non-root geo-rep setup.
fixes: bz#1721441
Change-Id: Ia83442733bf0b29f630e8c9e398097316efca092
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'geo-replication')
-rw-r--r-- | geo-replication/src/peer_mountbroker.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/src/peer_mountbroker.py.in b/geo-replication/src/peer_mountbroker.py.in index ce33f97f43c..96a72643ac3 100644 --- a/geo-replication/src/peer_mountbroker.py.in +++ b/geo-replication/src/peer_mountbroker.py.in @@ -197,7 +197,7 @@ class NodeSetup(Cmd): execute(["chgrp", "-R", args.group, GEOREP_DIR]) execute(["chgrp", "-R", args.group, LOG_DIR]) execute(["chgrp", args.group, CLI_LOG]) - execute(["chmod", "770", args.group, GEOREP_DIR]) + execute(["chmod", "770", GEOREP_DIR]) execute(["find", LOG_DIR, "-type", "d", "-exec", "chmod", "770", "{}", "+"]) execute(["find", LOG_DIR, "-type", "f", "-exec", "chmod", "660", "{}", |