mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
Prep for ubuntu 20.
This file is shared with cloud-in-a-box, which will support ubuntu 20 before MiaB-LDAP.
This commit is contained in:
parent
b634188ac0
commit
34d968a2cd
@ -91,7 +91,21 @@ fi
|
||||
hide_output add-apt-repository -y universe
|
||||
|
||||
# Install the certbot PPA.
|
||||
hide_output add-apt-repository -y ppa:certbot/certbot
|
||||
if [ $(. /etc/os-release; echo $VERSION_ID | awk -F. '{print $1}') -le 18 ]
|
||||
then
|
||||
hide_output add-apt-repository -y ppa:certbot/certbot
|
||||
else
|
||||
hide_output snap install core
|
||||
hide_output snap refresh core
|
||||
if ! snap list certbot 1>/dev/null 2>&1; then
|
||||
# a ppa was required on ubuntu 18, but snaps are used in ubuntu 19+
|
||||
# remove the ppa and certbot per eff's instructions
|
||||
hide_output add-apt-repository -r -y ppa:certbot/certbot
|
||||
hide_output apt-get remove -y certbot
|
||||
fi
|
||||
hide_output snap install --classic certbot
|
||||
ln -sf /snap/bin/certbot /usr/bin/certbot
|
||||
fi
|
||||
|
||||
# ### Update Packages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user