aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStevan Radaković <stevan.radakovic@linaro.org>2013-01-28 17:26:07 +0100
committerStevan Radaković <stevan.radakovic@linaro.org>2013-01-28 17:26:07 +0100
commit33c35a9e40ffd4598ea53b7d9dd0e99e13e706c8 (patch)
treec3ddb389e483860cbdca959168ebd914d5b4274f /scripts
parent04798e9ae105a6a87b45704c1390aecaaa6af934 (diff)
Fix error with backup db filename and with rhodecode config path.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rhodecode-setup8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/rhodecode-setup b/scripts/rhodecode-setup
index 179e8a8..cc62cbb 100755
--- a/scripts/rhodecode-setup
+++ b/scripts/rhodecode-setup
@@ -557,7 +557,7 @@ def backup_postgres_db(home_dir, db_name, postgres_usr="postgres"):
cmd_args = ["-u", postgres_usr, "pg_dump", db_name, "-f", tempfile_name]
execute_command(cmd_args, work_dir=home_dir)
- cmd_args = ["cp", tempfile_name, DB_BACKUP_FILENAME]
+ cmd_args = ["cp", tempfile_name, db_filename]
execute_command(cmd_args, work_dir=home_dir)
@@ -741,6 +741,8 @@ if __name__ == '__main__':
home_dir = os.path.join("/home", args.rhodecode_usr)
work_dir = os.path.join(home_dir, args.rhodecode_checkout_dir)
+ rhodecode_conf = os.path.join(home_dir,
+ os.path.basename(args.rhodecode_config))
if args.update:
# Stop rhodecode
@@ -756,7 +758,7 @@ if __name__ == '__main__':
reinstall_rhodecode(work_dir)
# Update database schema.
- update_database_schema(work_dir, args.rhodecode_config)
+ update_database_schema(work_dir, rhodecode_conf)
# Start rhodecode and celery.
start_service("rhodecode")
@@ -818,8 +820,6 @@ if __name__ == '__main__':
set_owners(work_dir, args.rhodecode_usr)
install_rhodecode(work_dir, args.rhodecode_usr)
- rhodecode_conf = os.path.join(home_dir,
- os.path.basename(args.rhodecode_config))
copy_file(args.rhodecode_config, home_dir)
set_owners(rhodecode_conf, args.rhodecode_usr)