Ubuntu Pastebin

Paste from bdx at Mon, 17 Oct 2016 17:13:24 +0000

Download as text
1
2
3
4
5
6
7
8
9
@when_not('apt.installed.lets-encrypt')
def check_version_and_install():
    series = lsb_release()['DISTRIB_CODENAME']
    if not series >= 'xenial':
        log('letsencrypt not supported on series >= %s' % (series))
        return
    else:
        charms.apt.queue_install(['lets-encrypt'])
        charms.apt.install_queued()
Download as text