mambawelcome.sh: fix autologin setting in *dm configuration
This commit is contained in:
parent
8dc80b9cfb
commit
c213d68810
@ -79,7 +79,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
}
|
||||
|
||||
# configure user for autologin
|
||||
[ "$INSTALL_USER_AUTOLOGIN" = "1" ] && {
|
||||
if [ "$INSTALL_USER_AUTOLOGIN" = "1" ]; then
|
||||
echo $"Info: enabling user autologin" | tee -a $LOG_FILE
|
||||
[ -e /opt/kde/share/config/kdm/kdmrc ] && {
|
||||
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=true|" \
|
||||
@ -97,7 +97,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=true|" \
|
||||
/etc/gdm/custom.conf
|
||||
}
|
||||
} || {
|
||||
else
|
||||
[ -e /opt/kde/share/config/kdm/kdmrc ] &&
|
||||
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \
|
||||
/opt/kde/share/config/kdm/kdmrc
|
||||
@ -107,7 +107,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
[ -e /etc/gdm/custom.conf ] &&
|
||||
sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=false|" \
|
||||
/etc/gdm/custom.conf
|
||||
}
|
||||
fi
|
||||
|
||||
# pre-create user homedir (currently just needed to put TODO txt files on
|
||||
# desktop)
|
||||
|
Loading…
Reference in New Issue
Block a user