Chris Rees 6eb93de9a9 Update to 3.0.0
Config file changes amass here, so a rewrite is necessary.  Fortunately,
the layout is the same so it is easy.
2013-03-03 15:17:19 +00:00

24 lines
800 B
Plaintext

@exec mkdir -p %D/%%WWWDIR%%/imgs
@exec chown %%WWW_OWNER%%:%%WWW_GROUP%% %D/%%WWWDIR%%/imgs
@unexec if cmp -s %D/etc/monitorix.conf %D/etc/monitorix.conf.sample; then rm -f %D/etc/monitorix.conf; fi
etc/monitorix.conf.sample
@exec if [ ! -f %D/etc/monitorix.conf ]; then cp %B/%f %D/etc/monitorix.conf; fi
bin/monitorix
@exec mkdir -p %D/%%WWWDIR%%/usage
@dirrmtry %%WWWDIR%%/usage
%%CGIDIR%%/monitorix.cgi
@unexec rm -f %B/monitorix.conf.path
@dirrmtry %%CGIDIR%%
%%WWWDIR%%/reports/ca.html.sample
%%WWWDIR%%/reports/de.html.sample
%%WWWDIR%%/reports/en.html.sample
%%WWWDIR%%/reports/it.html.sample
%%WWWDIR%%/reports/pl.html.sample
@dirrm %%WWWDIR%%/reports
%%WWWDIR%%/logo_bot.png
%%WWWDIR%%/logo_top.png
%%WWWDIR%%/monitorixico.png
%%WWWDIR%%/cgi
@dirrmtry %%WWWDIR%%/imgs
@dirrmtry %%WWWDIR%%