[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:
|
with open(mdm_conf_path, 'w') as mdm_conf:
|
||||||
for line in text:
|
for line in text:
|
||||||
|
if 'AutomaticLogin=' in line:
|
||||||
|
line = ""
|
||||||
|
if 'AutomaticLoginEnable=True' in line:
|
||||||
|
line = ""
|
||||||
if '[daemon]' in line:
|
if '[daemon]' in line:
|
||||||
if do_autologin:
|
if do_autologin:
|
||||||
line = (
|
line = (
|
||||||
@ -396,6 +400,10 @@ class DMgdm(DisplayManager):
|
|||||||
|
|
||||||
with open(gdm_conf_path, 'w') as gdm_conf:
|
with open(gdm_conf_path, 'w') as gdm_conf:
|
||||||
for line in text:
|
for line in text:
|
||||||
|
if 'AutomaticLogin=' in line:
|
||||||
|
line = ""
|
||||||
|
if 'AutomaticLoginEnable=True' in line:
|
||||||
|
line = ""
|
||||||
if '[daemon]' in line:
|
if '[daemon]' in line:
|
||||||
if do_autologin:
|
if do_autologin:
|
||||||
line = (
|
line = (
|
||||||
|
Loading…
Reference in New Issue
Block a user