mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -24,10 +24,10 @@ if ($dataHandle)
|
||||
|
||||
if ($argv[1] == "--cron")
|
||||
{
|
||||
if (is_file('vrrd')) { echo("ERROR: 'vrrd' 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('vrrd')) { mkdir('vrrd'); }
|
||||
$fd = fopen('vrrd/version.txt','w');
|
||||
if (is_file('rrd')) { echo("ERROR: 'rrd' is not a 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('rrd')) { mkdir('rrd'); }
|
||||
$fd = fopen('rrd/version.txt','w');
|
||||
fputs($fd, "$major.$minor.$release");
|
||||
fclose($fd);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user