mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-24 22:21:25 +00:00
add restorecon if applicable
This commit is contained in:
parent
6ba79e2aaf
commit
fb91f36128
@ -113,6 +113,8 @@ class Import:
|
||||
os.remove(source_path)
|
||||
else:
|
||||
shutil.move(src=source_path, dst=dest_path)
|
||||
if os.path.exists('/usr/sbin/restorecon'):
|
||||
processor.run_proc_foreground_shell('/usr/sbin/restorecon {dest_path}')
|
||||
|
||||
class SrpmImport(Import):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user