install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit d0c5db7d4cbfe2590b4f8e2531a516cfe81a7163
parent cd4e20e92f0be05e203604208bd48c44f2e8fbe4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 12 Jan 2017 13:45:02 +0100

Fix(Network): Wrong type and work conf token

Diffstat:
Mscreens/install/install.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -918,7 +918,7 @@ class Install: def config_network(self): print("Configuring network...") # Interface options - if type(self.conf_lst["network"]) == type(str) and \ + if type(self.conf_lst["network"]) == type("") and \ self.conf_lst["network"] == "DHCP": with open("/etc/sysconfig/ifconfig.eth0", "w+") as fd: fd.write("ONBOOT=yes\n") @@ -939,7 +939,7 @@ class Install: # DNS configuration with open("/etc/resolv.conf", "w+") as fd: - fd.write("domain " + self.conf_lst["hostname"] + "\n") + fd.write("domain " + self.conf_lst["system.hostname"] + "\n") if type(self.conf_lst["network"]) == type({}): for dns in self.conf_lst["network"]["DNS"],split(","): fd.write("nameserver "+ dns + "\n") @@ -950,7 +950,7 @@ class Install: # Hostname with open("/etc/hostname", "w+") as fd: - fd.write(self.conf_lst["hostname"]) + fd.write(self.conf_lst["system.hostname"]) fd.close() # Hosts