File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
site/profile/manifests/ccs Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 88 if $enable {
99 ensure_packages([' gdm' ])
1010
11- exec { 'Enable autologin for graphical ccs user' :
11+ exec { 'Enable timedlogin for graphical ccs user' :
1212 path => [' /usr/bin' ],
13- unless => ' grep -q ^AutomaticLogin /etc/gdm/custom.conf' ,
13+ unless => ' grep -q ^TimedLogin /etc/gdm/custom.conf' ,
1414 # lint:ignore:strict_indent
1515 command => @(" CMD" /L),
1616 sed -i ' /^\[ daemon.*/a\\
17- AutomaticLogin=ccs\n \
18- AutomaticLoginEnable=true' /etc/gdm/custom.conf
17+ TimedLogin=ccs\n \
18+ TimedLoginDelay=60\n \
19+ TimedLoginEnable=true' /etc/gdm/custom.conf
1920 | CMD
2021 # lint:endignore
2122 }
2223 } else {
23- exec { 'Disable autologin for graphical ccs user' :
24+ exec { 'Disable timedlogin for graphical ccs user' :
2425 path => [' /usr/bin' ],
25- onlyif => ' grep -q ^AutomaticLogin =ccs /etc/gdm/custom.conf' ,
26- command => ' sed -i "/^AutomaticLogin /d" /etc/gdm/custom.conf' ,
26+ onlyif => ' grep -q ^TimedLogin =ccs /etc/gdm/custom.conf' ,
27+ command => ' sed -i "/^TimedLogin /d" /etc/gdm/custom.conf' ,
2728 }
2829 }
2930}
You can’t perform that action at this time.
0 commit comments