A bug in the renaming of the /etc/resolv.conf file if it doesn't work.

This commit is contained in:
rperper
2018-10-29 10:45:46 -04:00
parent ed8c276b06
commit 52e6856fc4

View File

@@ -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: