Add support for running snapraid touch (#11)
This commit is contained in:
1 parent
4b9eb7bf9f
commit
d1fef79c72
2 files changed
+8
No files matched your search
@@ -151,6 +151,7 @@ def load_config(args):
|
||||
config["smtp"]["ssl"] = (config["smtp"]["ssl"].lower() == "true")
|
||||
config["scrub"]["enabled"] = (config["scrub"]["enabled"].lower() == "true")
|
||||
config["email"]["short"] = (config["email"]["short"].lower() == "true")
|
||||
config["snapraid"]["touch"] = (config["snapraid"]["touch"].lower() == "true")
|
||||
|
||||
if args.scrub is not None:
|
||||
config["scrub"]["enabled"] = args.scrub
|
||||
@@ -241,6 +242,11 @@ def run():
|
||||
config["snapraid"]["config"])
|
||||
finish(False)
|
||||
|
||||
if config["snapraid"]["touch"]:
|
||||
logging.info("Running touch...")
|
||||
snapraid_command("touch")
|
||||
logging.info("*" * 60)
|
||||
|
||||
logging.info("Running diff...")
|
||||
diff_out = snapraid_command("diff", ignore_errors=True)
|
||||
logging.info("*" * 60)
|
||||
|
||||
Reference in new issue
Block a user