c679424d17
WMI client 1.3.16 - a WMI (Windows Management Instrumentation) client which is needed for Pandora FMS. Submitted by: KIKUCHI Koichiro <koichiro@rworks.jp> Junichi Satoh <junichi@junichi.org> WWW; http://pandorafms.org/ Feature safe: yes
15 lines
1.4 KiB
Text
15 lines
1.4 KiB
Text
@comment $FreeBSD$
|
|
%%USE_LOGDIR%%@exec if [ ! -d %%LOGDIR%% ];then mkdir %%LOGDIR%%; chown pandora:www %%LOGDIR%%;fi
|
|
%%USE_LOGDIR%%@unexec rmdir %%LOGDIR%% 2>/dev/null || true
|
|
@exec if [ ! -d %%SPOOLDIR%% ];then mkdir -pm 770 %%SPOOLDIR%%; chown pandora:www %%SPOOLDIR%%;fi
|
|
%%USE_SPOOL_OUT%%@exec if [ ! -d %%SPOOLDIR%%/data_out ];then mkdir -pm 755 %%SPOOLDIR%%/data_out; chown pandora:daemon %%SPOOLDIR%%/data_out;fi
|
|
%%USE_SPOOL_OUT%%@unexec rmdir %%SPOOLDIR%%/data_out 2>/dev/null || true
|
|
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in ];then mkdir -pm 770 %%SPOOLDIR%%/data_in; chown pandora:www %%SPOOLDIR%%/data_in;fi
|
|
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/collections ];then mkdir %%SPOOLDIR%%/data_in/collections; chown pandora:www %%SPOOLDIR%%/data_in/collections;fi
|
|
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/conf ];then mkdir %%SPOOLDIR%%/data_in/conf; chown pandora:www %%SPOOLDIR%%/data_in/conf;fi
|
|
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/md5 ];then mkdir %%SPOOLDIR%%/data_in/md5; chown pandora:www %%SPOOLDIR%%/data_in/md5;fi
|
|
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/collections 2>/dev/null || true
|
|
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/conf 2>/dev/null || true
|
|
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/md5 2>/dev/null || true
|
|
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in 2>/dev/null || true
|
|
@unexec rmdir %%SPOOLDIR%% 2>/dev/null || true
|