]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Update to use /tmp when verifying
authorEdward Delaporte <edward@delaporte.us>
Sun, 7 Dec 2025 23:43:52 +0000 (17:43 -0600)
committerEdward Delaporte <edward@delaporte.us>
Sun, 7 Dec 2025 23:43:52 +0000 (17:43 -0600)
invoke/luanti-remote/tasks.py

index 75b7e39a3425961052d53da3d093ebe4c48c211e..3dfe1a3947eca0efa5c8a6dd73572007e14edd4a 100644 (file)
@@ -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}')