summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/inc/configtgz.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/sysconfig/inc/configtgz.inc.php')
-rw-r--r--modules-available/sysconfig/inc/configtgz.inc.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/modules-available/sysconfig/inc/configtgz.inc.php b/modules-available/sysconfig/inc/configtgz.inc.php
index 374cb5e0..cf9bf041 100644
--- a/modules-available/sysconfig/inc/configtgz.inc.php
+++ b/modules-available/sysconfig/inc/configtgz.inc.php
@@ -102,10 +102,6 @@ class ConfigTgz
if (!empty($module['filepath']) && file_exists($module['filepath'])) {
$files[] = $module['filepath'];
}
- if ($module['moduletype'] === 'SshConfig') {
- // HACK XXX TODO Global + SSH ugly
- self::rebuildEmptyGlobalConfig();
- }
}
$task = self::recompress($files, $this->file);
@@ -233,34 +229,6 @@ class ConfigTgz
$configTgz->generate();
}
}
- // Build the global "empty" config that just includes global hooks
- self::rebuildEmptyGlobalConfig();
- }
-
- /**
- * Rebuild the general "empty" config that only contains global hook modules
- * and forced ones.
- */
- private static function rebuildEmptyGlobalConfig()
- {
- static $onceOnly = false;
- if ($onceOnly)
- return;
- $onceOnly = true;
- // HACK TODO XXX -- just stuff (global) ssh config into this one for now, needs proper fix :-(
- $res = Database::simpleQuery("SELECT DISTINCT cm.filepath FROM configtgz_module cm
- INNER JOIN configtgz_x_module cxm USING (moduleid)
- INNER JOIN configtgz_location cl USING (configid)
- WHERE cm.moduletype = 'SshConfig' AND cm.status = 'OK'
- ORDER BY locationid ASC");
- $extra = [];
- while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
- if (file_exists($row['filepath'])) {
- $extra[] = $row['filepath'];
- break;
- }
- }
- self::recompress($extra, SysConfig::GLOBAL_MINIMAL_CONFIG);
}
/**