added zomeminder configuration script and file
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 23 Feb 2016 21:51:33 +0000 (16:51 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 23 Feb 2016 21:51:33 +0000 (16:51 -0500)
files/etc/apache2/conf-available/redirect-to-zm.conf/ZONEMINDER [new file with mode: 0644]
scripts/ZONEMINDER/10-apache-enable-zm.sh [new file with mode: 0755]

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 (file)
index 0000000..e74c03e
--- /dev/null
@@ -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 (executable)
index 0000000..5024914
--- /dev/null
@@ -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/
+