From cd378b8ef30961653e43a0c919e36dc9e521c017 Mon Sep 17 00:00:00 2001 From: yodax Date: Mon, 10 Jul 2017 22:05:33 +0200 Subject: [PATCH] Add php7 PPA and set unattended upgrades after unattended-upgrades package is installed --- setup/system.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 0b51ae26..791f2776 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -88,16 +88,6 @@ fi hide_output add-apt-repository -y ppa:mail-in-a-box/ppa -# ### Add PHP7 PPA - -# Nextcloud requires PHP7, we will install the ppa from ubuntu php maintainer Ondřej Surý -# The PPA is located here https://launchpad.net/%7Eondrej/+archive/ubuntu/php -# Unattended upgrades are activated for the repository - -hide_output add-apt-repository -y ppa:ondrej/php -apt_add_repository_to_unattended_upgrades LP-PPA-ondrej-php:trusty -hide_output apt-get update - # ### Update Packages # Update system packages to make sure we have the latest upstream versions of things from Ubuntu. @@ -129,6 +119,17 @@ apt_install python3 python3-dev python3-pip \ haveged pollinate unzip \ unattended-upgrades cron ntp fail2ban +# ### Add PHP7 PPA + +# Nextcloud requires PHP7, we will install the ppa from ubuntu php maintainer Ondřej Surý +# The PPA is located here https://launchpad.net/%7Eondrej/+archive/ubuntu/php +# Unattended upgrades are activated for the repository + +hide_output add-apt-repository -y ppa:ondrej/php +apt_add_repository_to_unattended_upgrades LP-PPA-ondrej-php:trusty +hide_output apt-get update + + # ### Suppress Upgrade Prompts # Since Mail-in-a-Box might jump straight to 18.04 LTS, there's no need # to be reminded about 16.04 on every login.