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:
parent
ecc5bafba6
commit
63262b39f3
@ -105,7 +105,7 @@ class graphite(
|
|||||||
command => 'python /usr/local/bin/graphite-init-db.py /etc/graphite/admin.ini',
|
command => 'python /usr/local/bin/graphite-init-db.py /etc/graphite/admin.ini',
|
||||||
cwd => '/usr/local/lib/python2.7/dist-packages/graphite',
|
cwd => '/usr/local/lib/python2.7/dist-packages/graphite',
|
||||||
path => '/bin:/usr/bin',
|
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'],
|
require => [ Exec['install_graphite_web'],
|
||||||
File['/var/lib/graphite'],
|
File['/var/lib/graphite'],
|
||||||
Package['apache2'],
|
Package['apache2'],
|
||||||
|
Loading…
Reference in New Issue
Block a user