diff --git a/pym/cl_install.py b/pym/cl_install.py index 7fe9d38..4084db5 100644 --- a/pym/cl_install.py +++ b/pym/cl_install.py @@ -2452,7 +2452,8 @@ class cl_install(color_print, SignalInterrupt): fileCpy = otherfilesCopy(target=targetDistr.getDirectory(), reTest=fileMask) fileCpy.performCopy('/etc') - fileCpy.performCopy('/root/.ssh') + if path.exists('/root/.ssh'): + fileCpy.performCopy('/root/.ssh') self.printByResult(True) # optimize initrd