mirror of
https://github.com/ceph/ceph
synced 2025-01-28 22:14:02 +00:00
Fix priority so it only is added once.
Needed for baremetal so the sed doesn't keep adding the priority line in the repos file. Signed-off-by: Sandon Van Ness <sandon@inktank.com>
This commit is contained in:
parent
e6a30d73a7
commit
57933b6f92
@ -194,7 +194,7 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config):
|
||||
#Fix Repo Priority
|
||||
remote.run(
|
||||
args=[
|
||||
'sudo', 'sed', '-i', run.Raw('\'s/enabled=1/enabled=1\\npriority=1/g\''), '/etc/yum.repos.d/ceph.repo',
|
||||
'sudo', 'sed', '-i', run.Raw('\':a;N;$!ba;s/enabled=1\\ngpg/enabled=1\\npriority=1\\ngpg/g\''), '/etc/yum.repos.d/ceph.repo',
|
||||
])
|
||||
|
||||
remote.run(
|
||||
|
Loading…
Reference in New Issue
Block a user