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

Commit

Permalink
Migrate 5.3.1 to 5.3.2 : enable ajxp_home and set it as DEFAULT_START…
Browse files Browse the repository at this point in the history
…_REPOSITORY
  • Loading branch information
cdujeu committed Aug 4, 2014
1 parent 696ec28 commit b98a5eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dist/php/5.3.2.php
@@ -0,0 +1,14 @@
<?php
// FORCE bootstrap_repositories copy, to enable ajxp_home workspace
if (is_file(AJXP_INSTALL_PATH."/conf/bootstrap_repositories.php".".new-".date("Ymd"))) {
rename(AJXP_INSTALL_PATH."/conf/bootstrap_repositories.php", AJXP_INSTALL_PATH."/conf/bootstrap_repositories.php.pre-update");
rename(AJXP_INSTALL_PATH."/conf/bootstrap_repositories.php".".new-".date("Ymd"), AJXP_INSTALL_PATH."/conf/bootstrap_repositories.php");
}

echo "The bootstrap_repositories files was replaced by the new version, the .pre-update version is kept.";

$root_role = AuthService::getRole("ROOT_ROLE");
if($root_role !== false){
$root_role->setParameterValue("core.conf", "DEFAULT_START_REPOSITORY", "ajxp_home");
AuthService::updateRole($root_role);
}

0 comments on commit b98a5eb

Please sign in to comment.