X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/5043eaba8b753e844cd1a6d98196c3945dfe3f07..6f19d2efc6e8ba165b99de7b7788dbd05cb169bf:/invoke/luanti-remote/tasks.py diff --git a/invoke/luanti-remote/tasks.py b/invoke/luanti-remote/tasks.py index 75b7e39..3dfe1a3 100644 --- a/invoke/luanti-remote/tasks.py +++ b/invoke/luanti-remote/tasks.py @@ -52,8 +52,8 @@ def verify_backup(c): TAR_FILE=f'{LOCAL_BACKUPS}/{BACKUP_FILE}' DB_FILE='map.sqlite' print(f'Extracting {DB_FILE} from {TAR_FILE}') - c.run(f'tar --extract --file={LOCAL_BACKUPS}/{BACKUP_FILE} {WORLD}/{DB_FILE}') - result = c.run(f'echo "PRAGMA quick_check;" | sqlite3 {DB_FILE}') + c.run(f'cd /tmp;tar --extract --file={LOCAL_BACKUPS}/{BACKUP_FILE} {WORLD}/{DB_FILE}') + result = c.run(f'echo "PRAGMA quick_check;" | sqlite3 /tmp/{DB_FILE}') # print(f'Check on {DB_FILE}: {result}') # print(f'Exit code: {result.exited}')