diff options
author | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-01-28 17:28:03 +0100 |
---|---|---|
committer | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-01-28 17:28:03 +0100 |
commit | 7deb3ac0fcd997946c8f2768d2bed4b96331d5a1 (patch) | |
tree | 6bc804ce53fed0ff3d6d336e0dbf7ba718e25989 | |
parent | 33c35a9e40ffd4598ea53b7d9dd0e99e13e706c8 (diff) |
Add assume-yes support for updating db schema.
-rwxr-xr-x | scripts/rhodecode-setup | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/rhodecode-setup b/scripts/rhodecode-setup index cc62cbb..d3fa646 100755 --- a/scripts/rhodecode-setup +++ b/scripts/rhodecode-setup @@ -526,8 +526,12 @@ def update_database_schema(work_dir, config_file): :param config_file: Config file to use, it will tell which db to update. :type str """ + input_str = None + if assume_yes: + input_str = "y" + cmd_args = ["paster", "upgrade-db", config_file] - execute_command(cmd_args, work_dir=work_dir) + execute_command(cmd_args, work_dir=work_dir, input_str=input_str) def backup_installation(home_dir): |