From: Edward Delaporte Date: Sun, 7 Dec 2025 23:43:52 +0000 (-0600) Subject: Update to use /tmp when verifying X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/c07e85164cb08d58960d8b2b3d9b7cf07ea22133?ds=sidebyside Update to use /tmp when verifying --- 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}')