240e5b34d0
1.) Handle installation of the script to determine the amount of free memory and swap space on the local machine automatically. 2.) Fix the NetBSD implementation of the above script. 3.) Create a wrapper shell script for invoking Cacti's poller. 4.) Simplify the installation instrunctions using the above enhancements. 5.) Don't included the log file in the package list. It doesn't belong there and "pkg_delete" will correctly complain that it has been modified. ToDo: - The log file and the "rrdtool" database still need to be moved to a directory under "${VARBASE}". - "config.php" should really be a config file to allow using a non-default password for the MySQL database. But the file would have to be readable by both the user of the webserver and that cacti user.
9 lines
218 B
Text
9 lines
218 B
Text
# $NetBSD: INSTALL,v 1.1 2014/01/16 21:10:00 tron Exp $
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
${TOUCH} @CACTI_LOGDIR@/cacti.log
|
|
${CHOWN} cacti:cacti @CACTI_LOGDIR@/cacti.log
|
|
${CHMOD} 640 @CACTI_LOGDIR@/cacti.log
|
|
;;
|
|
esac
|