mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
Add ZM_DIR_MODELS config entry
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
# The web account user must have full read/write permission to this folder.
|
||||
ZM_DIR_EVENTS=@ZM_DIR_EVENTS@
|
||||
|
||||
# Full path to the folder models are stored in.
|
||||
# The web account user must have read permission to this folder.
|
||||
ZM_DIR_MODELS=@ZM_DIR_MODELS@
|
||||
|
||||
# Foldername under the webroot where ZoneMinder looks for optional sound files
|
||||
# to play when an alarm is detected.
|
||||
ZM_DIR_SOUNDS=@ZM_DIR_SOUNDS@
|
||||
|
||||
@@ -180,6 +180,8 @@ void process_configfile(char const *configFile) {
|
||||
staticConfig.SERVER_ID = atoi(val_ptr);
|
||||
else if ( strcasecmp(name_ptr, "ZM_DIR_EVENTS") == 0 )
|
||||
staticConfig.DIR_EVENTS = std::string(val_ptr);
|
||||
else if ( strcasecmp(name_ptr, "ZM_DIR_MODELS") == 0 )
|
||||
staticConfig.DIR_MODELS = std::string(val_ptr);
|
||||
else if ( strcasecmp(name_ptr, "ZM_DIR_SOUNDS") == 0 )
|
||||
staticConfig.DIR_SOUNDS = std::string(val_ptr);
|
||||
else if ( strcasecmp(name_ptr, "ZM_DIR_EXPORTS") == 0 )
|
||||
|
||||
@@ -57,6 +57,7 @@ struct StaticConfig {
|
||||
std::string SERVER_NAME;
|
||||
unsigned int SERVER_ID;
|
||||
std::string DIR_EVENTS;
|
||||
std::string DIR_MODELS;
|
||||
std::string DIR_SOUNDS;
|
||||
std::string DIR_EXPORTS;
|
||||
std::string PATH_ZMS;
|
||||
|
||||
Reference in New Issue
Block a user