Subversion Repositories vnag

Rev

Rev 81 | Rev 83 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81 Rev 82
Line -... Line 1...
-
 
1
#!/usr/bin/php
1
<?php
2
<?php
2
 
3
 
3
/*
4
/*
4
 * VNag - Nagios Framework for PHP
5
 * VNag - Nagios Framework for PHP
5
 * Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
6
 * Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
Line 9... Line 10...
9
 */
10
 */
10
 
11
 
11
function vnag_make_phar($plugin) {
12
function vnag_make_phar($plugin) {
12
        $filename = __DIR__.'/../bin/'.$plugin.'.phar';
13
        $filename = __DIR__.'/../bin/'.$plugin.'.phar';
13
 
14
 
14
        copy(__DIR__.'/plugins/'.$plugin.'/icinga2.conf', $filename.'.conf');
15
        copy(__DIR__.'/plugins/'.$plugin.'/icinga2.conf', __DIR__.'/../bin/'.$plugin.'.conf');
15
 
16
 
16
        # ---
17
        # ---
17
 
18
 
18
        $input_files = [__DIR__.'/framework/vnag_framework.inc.php'];
19
        $input_files = [__DIR__.'/framework/vnag_framework.inc.php'];
19
        $input_files = array_merge($input_files, glob(__DIR__.'/plugins/'.$plugin.'/*.php*'));
20
        $input_files = array_merge($input_files, glob(__DIR__.'/plugins/'.$plugin.'/*.php*'));