|
Line 0
Link Here
|
|
|
1 |
--- validate.php.orig 2017-04-11 18:45:34 UTC |
| 2 |
+++ validate.php |
| 3 |
@@ -108,13 +108,6 @@ if (!($username === 'root' || (isset($co |
| 4 |
print_fail('You need to run this script as root' . (isset($config['user']) ? ' or '.$config['user'] : '')); |
| 5 |
} |
| 6 |
|
| 7 |
-if ($git_found === true) { |
| 8 |
- if ($config['update_channel'] == 'master' && $cur_sha != $versions['github']['sha']) { |
| 9 |
- $commit_date = new DateTime('@'.$versions['local_date'], new DateTimeZone(date_default_timezone_get())); |
| 10 |
- print_warn("Your install is out of date, last update: " . $commit_date->format('r')); |
| 11 |
- } |
| 12 |
-} |
| 13 |
- |
| 14 |
// Check php modules we use to make sure they are loaded |
| 15 |
$extensions = array('pcre','curl','session','snmp','mcrypt'); |
| 16 |
foreach ($extensions as $extension) { |
| 17 |
@@ -302,22 +295,6 @@ if (dbFetchCell('SELECT COUNT(*) FROM `d |
| 18 |
} |
| 19 |
|
| 20 |
|
| 21 |
-if ($git_found === true) { |
| 22 |
- if ($versions['local_branch'] != 'master') { |
| 23 |
- print_warn("Your local git branch is not master, this will prevent automatic updates."); |
| 24 |
- } |
| 25 |
- |
| 26 |
- // check for modified files |
| 27 |
- $modifiedcmd = 'git diff --name-only --exit-code'; |
| 28 |
- if ($username === 'root') { |
| 29 |
- $modifiedcmd = 'su '.$config['user'].' -c "'.$modifiedcmd.'"'; |
| 30 |
- } |
| 31 |
- exec($modifiedcmd, $cmdoutput, $code); |
| 32 |
- if ($code !== 0 && !empty($cmdoutput)) { |
| 33 |
- print_warn("Your local git contains modified files, this could prevent automatic updates.\nModified files:"); |
| 34 |
- print_list($cmdoutput, "\t %s\n"); |
| 35 |
- } |
| 36 |
-} |
| 37 |
// Modules test |
| 38 |
$modules = explode(',', $options['m']); |
| 39 |
foreach ($modules as $module) { |