From a9b4e589a231ff212286d0b73677186d59c9f668 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 23 Feb 2016 16:51:33 -0500 Subject: [PATCH] added zomeminder configuration script and file --- .../conf-available/redirect-to-zm.conf/ZONEMINDER | 6 ++++++ scripts/ZONEMINDER/10-apache-enable-zm.sh | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 files/etc/apache2/conf-available/redirect-to-zm.conf/ZONEMINDER create mode 100755 scripts/ZONEMINDER/10-apache-enable-zm.sh 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/ + -- 2.25.1