minor fixes for Cacti
authorPeter Pfeiffer <peterman@ipfire.org>
Mon, 18 May 2009 08:56:09 +0000 (10:56 +0200)
committerPeter Pfeiffer <peterman@ipfire.org>
Mon, 18 May 2009 08:56:09 +0000 (10:56 +0200)
lfs/cacti
src/paks/cacti/install.sh

index 45c1f65db9f9ce774dc8a330c8fe5a6cb3a01cf1..399f21d316638fab58015e7b0c4f89f330fbf559 100644 (file)
--- a/lfs/cacti
+++ b/lfs/cacti
@@ -82,8 +82,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        mkdir /usr/share/cacti
        cd $(DIR_APP) && mv -vf * /usr/share/cacti
        cp -vf $(DIR_SRC)/config/cacti/cacti.conf /etc/httpd/conf/vhosts.d/
-       install -v -m755 $(DIR_SRC)/config/cacti/cacti.cron /etc/fcron.cyclic/cacti.cron
+       install -v -m 755 $(DIR_SRC)/config/cacti/cacti.cron /etc/fcron.cyclic/cacti.cron
        install -v -m 644 $(DIR_SRC)/config/backup/includes/cacti \
                         /var/ipfire/backup/addons/includes/cacti
+       chown -R nobody:nobody usr/share/cacti/rrd/ /usr/share/cacti/log/
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 2c05f64d8be4fc9b0ebce97d34a6b60b04afc82b..c6b354c864175bc2955212addfb795d4c45331cd 100644 (file)
@@ -26,4 +26,4 @@ extract_files
 mysqladmin --user=root -pmysqlfire create cacti
 mysql --user=root -pmysqlfire cacti < /usr/share/cacti/cacti.sql
 mysql --user=root -pmysqlfire -e "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser';" mysql
-/etc init.d/apache restart
+/etc/init.d/apache restart