From 740d9085b413fe54440aa920929fbb3ba214a5e8 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 23 Apr 2020 10:47:45 -0400 Subject: [PATCH] remove 14.04 support and add 18.04 support --- install-ubuntu.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/install-ubuntu.sh b/install-ubuntu.sh index 5ad80ec..1f53553 100755 --- a/install-ubuntu.sh +++ b/install-ubuntu.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (C) 2016 Georgia Public Library Service +# Copyright (C) 2016-2020 Georgia Public Library Service # Chris Sharp # # This program is free software: you can redistribute it and/or modify @@ -27,16 +27,12 @@ DISTRO="$(lsb_release -i | awk '{print $3}')" RELEASE="$(lsb_release -r | awk '{print $2}')" OSRF_WEB_ROOT="/openils/var/web" if [ "$DISTRO" == "Ubuntu" ]; then + APT_TOOL="apt" + PREREQS="php7.0 php7.0-gd php7.0-pgsql php7.0-xml php7.0-dev php-memcache php-pear libapache2-mod-php7.0" + APACHE_RESTART="systemctl restart apache2.service" + # for 16.04, add the ondrej PPA to get the right PHP versions if [ "$RELEASE" == "16.04" ]; then - APT_TOOL="apt" - PREREQS="php7.0 php7.0-gd php7.0-pgsql php7.0-xml php7.0-dev php-memcache php-pear libapache2-mod-php7.0" - APACHE_RESTART="systemctl restart apache2.service" add-apt-repository -y $PPA - $APT_TOOL update - else - APT_TOOL="apt-get" - PREREQS="php5 php5-gd php5-pgsql php5-memcache php-pear" - APACHE_RESTART="service apache2 restart" fi else echo "You do not appear to be running Ubuntu. Please install manually." @@ -44,6 +40,7 @@ else fi # install prerequisites +$APT_TOOL update $APT_TOOL install -y $PREREQS # restart apache to activate PHP -- 2.43.2