handle http repositories ourselves since add-apt-repository fails so badly
This commit is contained in:
parent
446545c529
commit
7bcd20d783
@ -53,14 +53,15 @@ def render_template(template_name, context, template_dir=TEMPLATES_DIR):
|
||||
def configure_source():
|
||||
source = config_get('source')
|
||||
if (source.startswith('ppa:') or
|
||||
source.startswith('cloud:') or
|
||||
source.startswith('http:')):
|
||||
source.startswith('cloud:')):
|
||||
cmd = [
|
||||
'add-apt-repository',
|
||||
source
|
||||
]
|
||||
subprocess.check_call(cmd)
|
||||
if source.startswith('http:'):
|
||||
with open('/etc/apt/sources.list.d/ceph.list', 'w') as apt:
|
||||
apt.write("deb " + source + "\n")
|
||||
key = config_get('key')
|
||||
if key != "":
|
||||
cmd = [
|
||||
|
Loading…
Reference in New Issue
Block a user