Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

cat << 'EOL' >setup_zm_dirs_fedora.sh
#!/bin/bash

#https://zoneminder.readthedocs.io/en/stable/installationguide/dedicateddrive.html

sudo systemctl stop zoneminder

events=/mnt/mdadm/ZoneMinder/events
images=/mnt/mdadm/ZoneMinder/images

mkdir -p "$events"
mkdir -p "$images"

sudo chown -R apache:apache "$events"
sudo chown -R apache:apache "$images"

cat << 'LOE' >/etc/zm/conf.d/dirs.conf
ZM_DIR_EVENTS="$events"
ZM_DIR_IMAGES=$images"
LOE
cat /etc/zm/conf.d/dirs.conf

sudo systemctl start zoneminder
EOL
chmod +x setup_zm_dirs_fedora.sh
./setup_zm_dirs_fedora.sh
  • No labels