summaryrefslogtreecommitdiffstats
path: root/abs/core/zoneminder/zoneminder.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-10-25 14:58:41 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-10-25 14:58:41 (GMT)
commit8d29737682e67ca7276fae0b1e8e69578ce61428 (patch)
tree4cc01d92c820214a4e5249575eb7f5ccd6c142bb /abs/core/zoneminder/zoneminder.install
parentdb8bcbe3926e77c0144204beda14dee25a388d39 (diff)
parent927a8f226e532ba2187e8a9c9292453c3896f571 (diff)
downloadlinhes_pkgbuild-8d29737682e67ca7276fae0b1e8e69578ce61428.zip
linhes_pkgbuild-8d29737682e67ca7276fae0b1e8e69578ce61428.tar.gz
linhes_pkgbuild-8d29737682e67ca7276fae0b1e8e69578ce61428.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/zoneminder/zoneminder.install')
-rw-r--r--abs/core/zoneminder/zoneminder.install45
1 files changed, 3 insertions, 42 deletions
diff --git a/abs/core/zoneminder/zoneminder.install b/abs/core/zoneminder/zoneminder.install
index a086b96..5d5459a 100644
--- a/abs/core/zoneminder/zoneminder.install
+++ b/abs/core/zoneminder/zoneminder.install
@@ -11,52 +11,13 @@ install_db() {
echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql
fi
else
- echo "Will only init the database for StandAlone or Master_backend LinHES systems"
+ echo "Will only init the database for StandAlone or Master_backend LinHES systems"
fi
}
-pre_install() {
- set -e
- abort=false
- if [ -L /data/srv/httpd/zoneminder/events ]; then
- l=$(readlink /data/srv/httpd/zoneminder/events)
- if [ $l != /var/cache/zoneminder/events ]; then
- abort=true
- fi
- fi
- if [ -L /data/srv/httpd/zoneminder/images ]; then
- l=$(readlink /data/srv/httpd/zoneminder/images)
- if [ $l != /var/cache/zoneminder/images ]; then
- abort=true
- fi
- fi
- if [ $abort = true ]; then
- cat >&2 << EOF
-Aborting installation of zoneminder due to non-default symlinks in
-/data/srv/httpd/zoneminder for the images and/or events directory, which could
-result in loss of data. Please move your data in each of these directories to
-/var/cache/zoneminder before installing zoneminder from the package.
-EOF
- exit 1
- fi
- exit 0
-}
-
post_install() {
- if [[ -d /var/log/zoneminder ]]; then
- chmod 0755 /var/log/zoneminder
- chown http.http /var/log/zoneminder
- else
- mkdir -m 0755 /var/log/zoneminder
- chown http.http /var/log/zoneminder
- fi
- if [[ -d /tmp/zm ]]; then
- chmod 0700 /tmp/zm
- chown http.http /tmp/zm
- else
- mkdir -m 0700 /tmp/zm
- chown http.http /tmp/zm
- fi
+
+ systemd-tmpfiles --create zoneminder.conf
#---LinHES Stuff
usermod -G video http