summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall-all4
-rw-r--r--modules-available/sysconfig/api.inc.php6
2 files changed, 10 insertions, 0 deletions
diff --git a/install-all b/install-all
index 50efd708..1bde77f7 100755
--- a/install-all
+++ b/install-all
@@ -51,5 +51,9 @@ while true; do
fi
NEXT=$MODULE
done
+
+echo "Rebuilding config.tgz modules"
+php api.php sysconfig --action rebuild
+
echo "Done."
diff --git a/modules-available/sysconfig/api.inc.php b/modules-available/sysconfig/api.inc.php
index 897b44a7..9d621e5c 100644
--- a/modules-available/sysconfig/api.inc.php
+++ b/modules-available/sysconfig/api.inc.php
@@ -1,5 +1,11 @@
<?php
+// Called after updates to rebuild all configs
+if (Request::any('action') === 'rebuild' && isLocalExecution()) {
+ ConfigTgz::rebuildAllConfigs();
+ die('OK');
+}
+
$ip = $_SERVER['REMOTE_ADDR'];
if (substr($ip, 0, 7) === '::ffff:') {
$ip = substr($ip, 7);