Fixed mkdir directives to match project policy
authorroot <root@ipfire-build.home>
Sat, 5 Sep 2009 03:30:03 +0000 (05:30 +0200)
committerroot <root@ipfire-build.home>
Sat, 5 Sep 2009 03:30:03 +0000 (05:30 +0200)
lfs/cacti

index 45d226abc38b86d920461e864704b064b8194169..4dda25eb5e74ca1b78f18c62199262e856ded6cf 100644 (file)
--- a/lfs/cacti
+++ b/lfs/cacti
@@ -85,9 +85,9 @@ $(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
        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
-       if [ ! -x "/var/cacti" ]; then mkdir /var/cacti;fi
-       if [ ! -x "/var/cacti/rra" ]; then mkdir /var/cacti/rra; fi
-       if [ ! -x "/var/cacti/log" ]; then mkdir /var/cacti/log; fi
+       mkdir -pv /var/cacti || true
+       mkdir -pv /var/cacti/rra || true                                    
+       mkdir -pv /var/cacti/log || true
        mv -vf /usr/share/cacti/log/* /var/cacti/log/
        mv -vf /usr/share/cacti/rra/* /var/cacti/rra
        ln -s /var/cacti/log /usr/share/cacti/log
        mv -vf /usr/share/cacti/log/* /var/cacti/log/
        mv -vf /usr/share/cacti/rra/* /var/cacti/rra
        ln -s /var/cacti/log /usr/share/cacti/log