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:
Lance Edgar 2023-08-06 19:20:53 -05:00
parent e2369b1f53
commit bedca74ca1

View file

@ -259,9 +259,7 @@ def clone_db(c, name, owner, download, user='rattail', force=False, workdir=None
os.chdir(curdir)
# restore database on target server
filename = f'{name}.sql.gz'
c.sudo(f'mv {filename} /tmp/')
restore_db(c, name, f'/tmp/{filename}')
restore_db(c, name, '{}.sql.gz'.format(name))
def restore_db(c, name, path):