mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
A bug in the renaming of the /etc/resolv.conf file if it doesn't work.
This commit is contained in:
@@ -864,7 +864,7 @@ class InstallCyberPanel:
|
|||||||
try:
|
try:
|
||||||
os.rename('/etc/resolv.conf', 'etc/resolved.conf')
|
os.rename('/etc/resolv.conf', 'etc/resolved.conf')
|
||||||
except OSError as e:
|
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: " +
|
InstallCyberPanel.stdOut("Unable to rename /etc/resolv.conf to install PowerDNS: " +
|
||||||
str(e), 1, 1, os.EX_OSERR)
|
str(e), 1, 1, os.EX_OSERR)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user