Skip to content
Snippets Groups Projects
Commit 870b9d7e authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bugs in deb package post installation script.

parent 430944ec
No related merge requests found
#!/bin/bash
# Script for installing VuFind 2.x on Ubuntu
# This does not include the OCI8 libraries
......@@ -15,22 +15,21 @@ if [ $? -ne 0 ]; then
fi
grep -q VUFIND_LOCAL_DIR= /etc/profile
if [ $? -ne 0 ]; then
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"$VUFIND_HOME/local\" >> /etc/profile'
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"\$VUFIND_HOME/local\" >> /etc/profile'
fi
source /etc/profile
# Turn on mod_rewrite in Apache.
sudo a2enmod rewrite
# Set permissions so Apache can write to certain directories.
sudo chown -R www-data:www-data $VUFIND_LOCAL_DIR/cache
sudo chown -R www-data:www-data $VUFIND_LOCAL_DIR/config
# set up Apache for VuFind and reload configuration
sudo ln -s $VUFIND_LOCAL_DIR/httpd-vufind.conf /etc/apache2/conf.d/vufind2
sudo /etc/init.d/apache2 force-reload
# Finalize the installation
# Create the Apache configuration
cd $VUFIND_HOME
sudo php install.php --use-defaults
# Set up Apache for VuFind and reload configuration
sudo ln -s $VUFIND_LOCAL_DIR/httpd-vufind.conf /etc/apache2/conf.d/vufind2
sudo /etc/init.d/apache2 force-reload
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment