Hide svn on the upgrade page when the FusionPBX package is installed

This commit is contained in:
Mark Crane
2014-07-18 21:21:29 +00:00
parent af60e6f961
commit 0e219bf040

View File

@@ -55,7 +55,7 @@ if (sizeof($_POST) > 0) {
$do = $_POST['do'];
// run svn update
if ($do["svn"] && permission_exists("upgrade_svn")) {
if ($do["svn"] && permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) {
$cmd = "svn up /var/www/fusionpbx";
exec($cmd, $response_svn_update);
if (sizeof($response_svn_update) > 0) {
@@ -122,7 +122,7 @@ echo "<br><br><br>";
echo "<form name='frm' method='post' action=''>\n";
if (permission_exists("upgrade_svn")) {
if (permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) {
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo " <td width='30%' class='vncell'>\n";