]> BookStack Code Mirror - devops/commitdiff
fixed multiple packages not being found 18/head
authorjantari <redacted>
Fri, 21 Dec 2018 13:29:40 +0000 (14:29 +0100)
committerGitHub <redacted>
Fri, 21 Dec 2018 13:29:40 +0000 (14:29 +0100)
The script as it was would error out and not find installation candidates for many of the packages, such as "php7.2-fpm".

This is because on Ubuntu 18.04, the universe repo is not enabled by default. We have to enable it to get access to these packages.

scripts/installation-ubuntu-18.04.sh

index af398e6ccc6cb3b0ace34d3b096868832bd12943..7db837b21020433149fb57318a4a121ed1fb5fdd 100644 (file)
@@ -9,6 +9,7 @@ read DOMAIN
 CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
 
 export DEBIAN_FRONTEND=noninteractive
+add-apt-repository universe
 apt update
 apt install -y git apache2 curl php7.2-fpm php7.2-curl php7.2-mbstring php7.2-ldap \
 php7.2-tidy php7.2-xml php7.2-zip php7.2-gd php7.2-mysql mysql-server-5.7 libapache2-mod-php7.2
Morty Proxy This is a proxified and sanitized view of the page, visit original site.