mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Get rid of some more execs
git-svn-id: http://www.observium.org/svn/observer/trunk@1814 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+5
-3
@@ -22,9 +22,11 @@ if($dataHandle)
|
||||
list($cur, $tag) = explode("-", $config['version']);
|
||||
list($cur_major, $cur_minor, $cur_release) = explode(".", $cur);
|
||||
|
||||
if($argv[1] == "--cron") {
|
||||
|
||||
shell_exec("echo $major.$minor.$release > rrd/version.txt ");
|
||||
if($argv[1] == "--cron")
|
||||
{
|
||||
$fd = fopen('vrrd/version.txt','w');
|
||||
fputs($fd, "$major.$minor.$release");
|
||||
fclose($fd);
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user