mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-08 13:11:50 +08:00
CLI: Adding a log for pre/post execution commands launch
This commit is contained in:
parent
62f9e4d6c1
commit
9e7d3bfba5
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.core.runner"
|
|||
__author__ = "Orsiris de Jong"
|
||||
__copyright__ = "Copyright (C) 2022-2025 NetInvent"
|
||||
__license__ = "GPL-3.0-only"
|
||||
__build__ = "2025090901"
|
||||
__build__ = "2025100201"
|
||||
|
||||
|
||||
from typing import Optional, Callable, Union, List
|
||||
|
|
@ -1374,6 +1374,7 @@ class NPBackupRunner:
|
|||
):
|
||||
commands_success = True
|
||||
if command_list:
|
||||
self.write_logs("Running {}-execution commands".format(exec_type))
|
||||
for command in command_list:
|
||||
exit_code, output = command_runner(
|
||||
command, shell=True, timeout=per_command_timeout
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue