Fix path to graphite db

The onlyif test is looking for a different path than the scripts
install the database file to. Adjust it so that we don't run
every time.

Change-Id: I96c8496fb678e99facc65a01a7d34ab08290416d
This commit is contained in:
Monty Taylor 2014-02-09 16:22:57 -08:00
parent ecc5bafba6
commit 63262b39f3

View File

@ -105,7 +105,7 @@ class graphite(
command => 'python /usr/local/bin/graphite-init-db.py /etc/graphite/admin.ini',
cwd => '/usr/local/lib/python2.7/dist-packages/graphite',
path => '/bin:/usr/bin',
onlyif => 'test ! -f /var/lib/graphite/graphite.db',
onlyif => 'test ! -f /var/lib/graphite/storage/graphite.db',
require => [ Exec['install_graphite_web'],
File['/var/lib/graphite'],
Package['apache2'],