From 870b9d7eae44998743ced999d45b2ff93981de5c Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 19 Sep 2012 14:38:31 -0400 Subject: [PATCH] Fixed bugs in deb package post installation script. --- packages/DEBIAN/postinst | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/DEBIAN/postinst b/packages/DEBIAN/postinst index 0cb3957e36e..01b83ca7771 100644 --- a/packages/DEBIAN/postinst +++ b/packages/DEBIAN/postinst @@ -1,5 +1,5 @@ #!/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 -- GitLab