aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radaković <stevan.radakovic@linaro.org>2013-04-10 12:04:10 +0200
committerStevan Radaković <stevan.radakovic@linaro.org>2013-04-10 12:04:10 +0200
commite3e5367ccaf7c45c278ffa68ff63ef74f3962556 (patch)
treea7e11f4af3e3a16f46f6a97fca9d7df839f06358
parent938a9e10f0c70c15368013186c43f7644a583943 (diff)
downloadrhodecode-config-rescan_repo_fix.tar.gz
Add remove_obsolete option to rescan-repos. Update INSTALL file.rescan_repo_fix
-rw-r--r--INSTALL5
-rw-r--r--scripts/mirror-repos3
2 files changed, 6 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
index 34f1590..aeada4f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -291,7 +291,7 @@ To enable LDAP:
And under the "# User alias specification" add the following line:
- %rhodecode ALL=(ALL) NOPASSWD: /usr/sbin/groupadd, /usr/sbin/groupmod, /usr/bin/gpasswd, /usr/bin/change-repo-ownership
+ %rhodecode ALL=(ALL) NOPASSWD: /usr/sbin/groupadd, /usr/sbin/groupmod, /usr/bin/gpasswd, /usr/bin/change-repo-ownership, /usr/bin/getent
Configuration
=============
@@ -431,3 +431,6 @@ from the rhodecode-config base directory:
the code base will be updated.
* $CO_DIR: path to the directory where Rhodecode was previously cloned.
* $DB_NAME: Database name for Rhodecode (default is: rhodecode)
+
+After upgrade, the Apache config should be copied manually to the
+/etc/apache2/sites-available/ directory.
diff --git a/scripts/mirror-repos b/scripts/mirror-repos
index 31c6a4e..ab830d3 100644
--- a/scripts/mirror-repos
+++ b/scripts/mirror-repos
@@ -206,7 +206,8 @@ def rescan_git_directory(api_key, api_host, user=None):
api_host_cmd = "--apihost=%s" % api_host
api_cmd = os.path.join(bin_dir, "rhodecode-api")
- cmd_args = [api_cmd, api_key_cmd, api_host_cmd, "rescan_repos"]
+ cmd_args = [api_cmd, api_key_cmd, api_host_cmd, "rescan_repos",
+ "remove_obsolete:True"]
if actual_user == DEFAULT_USER or not user:
execute_command(cmd_args)
else: