summaryrefslogtreecommitdiff
path: root/roles/shell/bash/templates/bash_profile.j2
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-04 00:37:08 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-04 00:37:08 +0100
commitc235f9bea368316f1c1a441ebf6877e05e7df21c (patch)
tree61d93da1efd55132b186bb8ff7639b9a8e317131 /roles/shell/bash/templates/bash_profile.j2
parent397c4fed757d201af627636822981e85e84ea572 (diff)
downloadAnsible-c235f9bea368316f1c1a441ebf6877e05e7df21c.tar.gz
Ansible-c235f9bea368316f1c1a441ebf6877e05e7df21c.tar.zst
Ansible-c235f9bea368316f1c1a441ebf6877e05e7df21c.zip
Add a temporary bashrc when updating pam_environment
Diffstat (limited to 'roles/shell/bash/templates/bash_profile.j2')
-rw-r--r--roles/shell/bash/templates/bash_profile.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2
index 06210fa..9b9e86c 100644
--- a/roles/shell/bash/templates/bash_profile.j2
+++ b/roles/shell/bash/templates/bash_profile.j2
@@ -4,6 +4,7 @@
4{% if "graphical_vt" in features.get(profile, []) %} 4{% if "graphical_vt" in features.get(profile, []) %}
5 5
6if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then 6if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
7 [[ -f "$HOME/.bashrc_temp" ]] && rm -f $HOME/.bashrc_temp
7 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 8 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
8fi 9fi
9{% endif %} 10{% endif %}