mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
- Create the 'vrrd' directory if it does not exist.
git-svn-id: http://www.observium.org/svn/observer/trunk@1917 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -24,6 +24,9 @@ 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');
|
||||
fputs($fd, "$major.$minor.$release");
|
||||
fclose($fd);
|
||||
|
||||
Reference in New Issue
Block a user