mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
Network insight, missing import for https://github.com/opnsense/core/issues/2964
This commit is contained in:
parent
dc38875202
commit
02c5bb692d
@ -193,6 +193,7 @@ if __name__ == '__main__':
|
||||
Main.set_config(
|
||||
load_config(cmd_args.config)
|
||||
)
|
||||
from sqlite3_helper import check_and_repair
|
||||
|
||||
if cmd_args.console:
|
||||
# command line start
|
||||
@ -216,7 +217,6 @@ if __name__ == '__main__':
|
||||
elif cmd_args.repair:
|
||||
# force a database repair, when
|
||||
try:
|
||||
from sqlite3_helper import check_and_repair
|
||||
lck = open(Main.config.pid_filename, 'a+')
|
||||
fcntl.flock(lck, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||
check_and_repair(filename_mask='%s/*.sqlite' % Main.config.database_dir, force_repair=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user