Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Rename test scripts from 6.1.0 to 6.2.0
Browse files Browse the repository at this point in the history
Update 6.2.0.php to re-enable plugins by default to avoid issues.
  • Loading branch information
cdujeu committed Nov 6, 2015
1 parent 36b5bc7 commit d189996
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dist/php/6.1.0.php

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions dist/php/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>";
File renamed without changes.

0 comments on commit d189996

Please sign in to comment.