Subversion Repositories sql-ledger

Rev

Rev 38 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/bin/sh
#
# Activate SQL-Ledger in apache configuration.  Small helper script
# to reduce the chance of typos.

httpdconf=/etc/apache/httpd.conf
includeline="Include /etc/sql-ledger/sql-ledger-httpd.conf"

if grep -q "^$includeline" $httpdconf ; then
    echo "info: SQL-Ledger is already enabled in $httpdconf"
else
    echo "$includeline" >> $httpdconf
    echo "info: Content of $httpdconf is updated.
    echo "info: Please restart apache for this change to take effect."
    echo "info: Remember that there might be no admin password set at"
    echo "info: the moment, and the installation is open for everyone."
fi