You can add the command like this:
su - user -c "bash command"
before the line `exit 0`
You can add the command like this:
su - user -c "bash command"
before the line `exit 0`
run this command in command line tty with root user:
service lightdm restart