mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
ceph: make /var/run/ceph writeable by non-root too
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
1d62baf107
commit
5c0a2f40de
@ -80,14 +80,19 @@ class CephState(object):
|
||||
|
||||
@contextlib.contextmanager
|
||||
def ceph_log(ctx, config):
|
||||
log.info('Making ceph log dir writeable by non-root...')
|
||||
log.info('Making ceph log and run dirs writeable by non-root...')
|
||||
run.wait(
|
||||
ctx.cluster.run(
|
||||
args=[
|
||||
'sudo',
|
||||
'install', '-d', '-m0755', '--',
|
||||
'/var/run/ceph',
|
||||
run.Raw(';'),
|
||||
'sudo',
|
||||
'chmod',
|
||||
'777',
|
||||
'/var/log/ceph',
|
||||
'/var/run/ceph',
|
||||
],
|
||||
wait=False,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user