summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/pydio/files/6.2.0.php')
-rw-r--r--www-apps/pydio/files/6.2.0.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/www-apps/pydio/files/6.2.0.php b/www-apps/pydio/files/6.2.0.php
new file mode 100644
index 0000000..4368aa2
--- /dev/null
+++ b/www-apps/pydio/files/6.2.0.php
@@ -0,0 +1,43 @@
+<?php
+
+// FORCE bootstrap_context copy, otherwise it won't reboot
+if (is_file(AJXP_INSTALL_PATH."/conf/bootstrap_context.php".".new-".date("Ymd"))) {
+ rename(AJXP_INSTALL_PATH."/conf/bootstrap_context.php", AJXP_INSTALL_PATH."/conf/bootstrap_context.php.pre-update");
+ rename(AJXP_INSTALL_PATH."/conf/bootstrap_context.php".".new-".date("Ymd"), AJXP_INSTALL_PATH."/conf/bootstrap_context.php");
+}
+
+// RE-ENABLE NEWLY DISABLED DRIVERS TO AVOID DISAPPEARING FEATURES
+$disabledPlugins = array(
+ "access.demo", "access.imap", "access.jsapi", "access.mysql", "access.sftp", "access.sft_psl", "access.smb", "access.webdav",
+ "auth.basic_http", "auth.custom_db", "auth.ftp", "auth.radius", "auth.remote_ajxp", "auth.serial", "auth.smb",
+ "conf.serial", "index.elasticsearch", "log.syslog", "meta.svn", "metastore.xattr"
+);
+$skipReenable = array("access.demo", "access.jsapi", "access.mysql", "auth.remote_ajxp", "meta.svn");
+$enabled = array();
+$skipped = array();
+$confStorage = ConfService::getConfStorageImpl();
+foreach($disabledPlugins as $plugin){
+
+ $plugObject = AJXP_PluginsService::findPluginById($plugin);
+ if(is_a($plugObject, "AJXP_Plugin")){
+
+ if($plugObject->isEnabled()) continue;
+
+ if(in_array($plugin, $skipReenable)){
+ $skipped[]= $plugin;
+ continue;
+ }
+ list($type, $name) = explode(".", $plugin);
+
+ $options = $confStorage->loadPluginConfig($type, $name);
+ $options["AJXP_PLUGIN_ENABLED"] = true;
+ $confStorage->savePluginConfig($plugin, $options);
+ $enabled[] = $plugin;
+
+ }
+
+}
+
+echo "To improve performances, many plugins were disabled by default in the new version.<br>";
+echo "The following ones were automatically re-enabled to avoid conflicts with your setup : ".implode(", ", $enabled). "<br><br>";
+echo "Warning, the following ones were not re-enabled, so please make sure to switch them on manually if you use them : ".implode(", ", $skipped). "<br><br>"; \ No newline at end of file