Revert "Move sql file to temp path when restoring postgres db"
This reverts commit 94945fbc30
.
apparently that breaks some nightly cloning (prod -> stage)
This commit is contained in:
parent
e2369b1f53
commit
bedca74ca1
|
@ -259,9 +259,7 @@ def clone_db(c, name, owner, download, user='rattail', force=False, workdir=None
|
||||||
os.chdir(curdir)
|
os.chdir(curdir)
|
||||||
|
|
||||||
# restore database on target server
|
# restore database on target server
|
||||||
filename = f'{name}.sql.gz'
|
restore_db(c, name, '{}.sql.gz'.format(name))
|
||||||
c.sudo(f'mv {filename} /tmp/')
|
|
||||||
restore_db(c, name, f'/tmp/{filename}')
|
|
||||||
|
|
||||||
|
|
||||||
def restore_db(c, name, path):
|
def restore_db(c, name, path):
|
||||||
|
|
Loading…
Reference in a new issue