From 9b1e62d818cc020d63830e685d9e6cf82392b13e Mon Sep 17 00:00:00 2001 From: rperper Date: Mon, 29 Oct 2018 10:45:46 -0400 Subject: [PATCH] A bug in the renaming of the /etc/resolv.conf file if it doesn't work. --- install/installCyberPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index b569c6f21..a8f1fa65d 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -864,7 +864,7 @@ class InstallCyberPanel: try: os.rename('/etc/resolv.conf', 'etc/resolved.conf') except OSError as e: - if e.errno != errno.EEXIST: + if e.errno != errno.EEXIST and e.errno != errno.ENOENT: InstallCyberPanel.stdOut("Unable to rename /etc/resolv.conf to install PowerDNS: " + str(e), 1, 1, os.EX_OSERR) try: