mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #96 from ceph/wip-fix-sudoers
Make sed expressions safe to run multiple times
This commit is contained in:
commit
b923152eef
@ -288,8 +288,8 @@ def sudo(ctx, config):
|
||||
log.info('Configuring sudo...')
|
||||
sudoers_file = '/etc/sudoers'
|
||||
backup_ext = '.orig.teuthology'
|
||||
tty_expr = 's/requiretty/!requiretty/'
|
||||
pw_expr = 's/!visiblepw/visiblepw/'
|
||||
tty_expr = 's/^\([^#]*\) \(requiretty\)/\1 !\2/g'
|
||||
pw_expr = 's/^\([^#]*\) !\(visiblepw\)/\1 \2/g'
|
||||
|
||||
run.wait(
|
||||
ctx.cluster.run(
|
||||
|
Loading…
Reference in New Issue
Block a user