[displaymanager] don't write AutomaticLogin lines
- sometimes if you use external OEM modules you might have those lines already present - by skipping them you won't have double lines when rerun the module in a later step
This commit is contained in:
parent
f4f720bc8f
commit
e4bdeaa943
@ -287,6 +287,10 @@ class DMmdm(DisplayManager):
|
||||
|
||||
with open(mdm_conf_path, 'w') as mdm_conf:
|
||||
for line in text:
|
||||
if 'AutomaticLogin=' in line:
|
||||
line = ""
|
||||
if 'AutomaticLoginEnable=True' in line:
|
||||
line = ""
|
||||
if '[daemon]' in line:
|
||||
if do_autologin:
|
||||
line = (
|
||||
@ -396,6 +400,10 @@ class DMgdm(DisplayManager):
|
||||
|
||||
with open(gdm_conf_path, 'w') as gdm_conf:
|
||||
for line in text:
|
||||
if 'AutomaticLogin=' in line:
|
||||
line = ""
|
||||
if 'AutomaticLoginEnable=True' in line:
|
||||
line = ""
|
||||
if '[daemon]' in line:
|
||||
if do_autologin:
|
||||
line = (
|
||||
|
Loading…
Reference in New Issue
Block a user