From: Chris Sharp Date: Tue, 22 Nov 2016 02:00:49 +0000 (-0500) Subject: Adding installation script for Ubuntu 14.04 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=749dba0d4be1548e5ae7bd4b0892b87fe906fccd;p=contrib%2Fpines%2Freport-creator.git Adding installation script for Ubuntu 14.04 Signed-off-by: Chris Sharp --- diff --git a/install-ubuntu-14.04.sh b/install-ubuntu-14.04.sh new file mode 100755 index 0000000..b1b34bb --- /dev/null +++ b/install-ubuntu-14.04.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# +# Copyright (C) 2016 Georgia Public Library Service +# Chris Sharp +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# A script to automate installation of the report-creator feature. + +APT_TOOL="apt-get" +OSRF_WEB_ROOT="/openils/var/web" + +# install prerequisites +$APT_TOOL install php5 php5-gd php5-pgsql php5-memcache php-pear + +# restart apache to activate PHP +service apache2 restart + +# create the report-creator directory +mkdir $OSRF_WEB_ROOT/report-creator +chown -R opensrf:opensrf $OSRF_WEB_ROOT/report-creator + +echo "DirectoryIndex index.php" > $OSRF_WEB_ROOT/report-creator/.htaccess + +echo "This script will not create the required tables in the database." +echo "Please run sql/quick_reports_setup.sql ONLY if you haven't already." + +echo "Copying report-creator files into $OSRF_WEB_ROOT/report-creator." +rsync -auv --exclude="install*.sh" ./ $OSRF_WEB_ROOT/report-creator/ + +echo "Now browse to https://www.yourdomain.tld/report-creator to complete setup." +echo "Refer to docs/Installation_Instructions.txt for details."