change datadirs for Cacti to /var/cacti
[people/pmueller/ipfire-2.x.git] / lfs / cacti
index 325c7e788b006f35eaba9c67bdbf0c7f046e712c..5d5179a1a8dc66db6320187b930b7cb8913155fb 100644 (file)
--- a/lfs/cacti
+++ b/lfs/cacti
@@ -85,6 +85,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        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
+       mkdir /var/cacti && mkdir /var/cacti/rra && mkdir /var/cacti/log 
+       mv -vf /usr/share/cacti/log /var/cacti
+       mv -vf /usr/share/cacti/rra /var/cacti
+       ln -s /var/cacti/log /usr/share/cacti/log
+       ln -s /var/cacti/rra /usr/share/cacti/rra                
        chown -R nobody:nobody /usr/share/cacti/rra/ /usr/share/cacti/log/
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)