From: Andrew Engelbrecht Date: Tue, 23 Feb 2016 21:51:33 +0000 (-0500) Subject: added zomeminder configuration script and file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a9b4e589a231ff212286d0b73677186d59c9f668;p=fai-configs.git added zomeminder configuration script and file --- diff --git a/files/etc/apache2/conf-available/redirect-to-zm.conf/ZONEMINDER b/files/etc/apache2/conf-available/redirect-to-zm.conf/ZONEMINDER new file mode 100644 index 0000000..e74c03e --- /dev/null +++ b/files/etc/apache2/conf-available/redirect-to-zm.conf/ZONEMINDER @@ -0,0 +1,6 @@ +# File managed by fai. +# Local changes will be overwritten. +# Make changes to fai-configs/files/etc/apache2/* + +RedirectMatch temp ^/$ /zm + diff --git a/scripts/ZONEMINDER/10-apache-enable-zm.sh b/scripts/ZONEMINDER/10-apache-enable-zm.sh new file mode 100755 index 0000000..5024914 --- /dev/null +++ b/scripts/ZONEMINDER/10-apache-enable-zm.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +# create/link apache configs +ln -sf $target/etc/zm/apache.conf $target/etc/apache2/conf-available/zoneminder.conf +fcopy -v /etc/apache2/conf-available/redirect-to-zm.conf + +# enable apache configs +ln -sf $target/etc/apache2/conf-available/zoneminder.conf $target/etc/apache2/conf-enabled/ +ln -sf $target/etc/apache2/conf-available/redirect-to-zm.conf $target/etc/apache2/conf-enabled/ +