err, vrrd should have been rrd, but we don't actually use versioncheck anywhere

git-svn-id: http://www.observium.org/svn/observer/trunk@1918 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-18 00:43:36 +00:00
parent 0fb92ed816
commit bc9e030ec3

View File

@ -24,10 +24,10 @@ if ($dataHandle)
if ($argv[1] == "--cron") if ($argv[1] == "--cron")
{ {
if (is_file('vrrd')) { echo("ERROR: 'vrrd' is not a directory!\n"); exit; } if (is_file('rrd')) { echo("ERROR: 'rrd' is not a directory!\n"); exit; }
if (is_dir('vrrd') && !is_writable('vrrd')) { echo("ERROR: I can not write in the 'vrrd' directory!\n"); exit; } if (is_dir('rrd') && !is_writable('rrd')) { echo("ERROR: I can not write in the 'rrd' directory!\n"); exit; }
if (!is_dir('vrrd')) { mkdir('vrrd'); } if (!is_dir('rrd')) { mkdir('rrd'); }
$fd = fopen('vrrd/version.txt','w'); $fd = fopen('rrd/version.txt','w');
fputs($fd, "$major.$minor.$release"); fputs($fd, "$major.$minor.$release");
fclose($fd); fclose($fd);
} else { } else {