#!/bin/bash # This tool is used to verify folders critical to ZoneMinder exist and have the right permissions. # It will also create symlinks when necessary. It can use an existing content folder or create a new one. # Set the content dir default to be the one supplied to cmake ZM_PATH_CONTENT="@ZM_CONTENTDIR@" # Set the zoneminder log dir default to be the one supplied to cmake ZM_LOGDIR="@ZM_LOGDIR@" # Set the zoneminder temp dir default to be the one supplied to cmake ZM_TMPDIR="@ZM_TMPDIR@" echo "*** This bash script creates the nessecary symlinks for the zoneminder content" echo "*** It can use an existing content folder or create a new one" echo "*** For usage: use -h" echo "*** The default content directory is: $ZM_PATH_CONTENT" echo "*** The default log directory is: $ZM_LOGDIR" echo "*** The default temp directory is: $ZM_TMPDIR" echo "" usage() { cat <