mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
cron
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import datetime
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -14,6 +15,8 @@ def cli():
|
||||
When finished, /mnt/ofm dir will have all the present tiles.btrfs files mounted in a read-only way.
|
||||
"""
|
||||
|
||||
print(datetime.datetime.now(tz=datetime.timezone.utc))
|
||||
|
||||
if not Path('/etc/fstab').exists():
|
||||
sys.exit('Needs to be run on Linux')
|
||||
|
||||
@@ -57,6 +60,8 @@ def cli():
|
||||
clean_up_mounts()
|
||||
print('DONE')
|
||||
|
||||
print('\n\n\n')
|
||||
|
||||
|
||||
def clean_up_mounts():
|
||||
mnt_dir = Path('/mnt/ofm')
|
||||
|
||||
Reference in New Issue
Block a user