Skip to content
GitLab
  • Explore
  • Sign in
  • InfrastructureInfrastructure
  • Salt StatesSalt States
  • Runner StatesRunner States
  • Issues
  • #4

.bash_logout is always commented out

.bash_logout is always commented out, even if all lines already begin with #.

Latest state.apply result:

----------
          ID: runner_bash_logout
    Function: file.comment
        Name: /home/gitlab-runner/.bash_logout
      Result: True
     Comment: Commented lines successfully
     Started: 14:17:47.226092
    Duration: 3.013 ms
     Changes:
              ----------
              diff:
                  ---
                  +++
                  @@ -1,7 +1,7 @@
                  -#### ~/.bash_logout: executed by bash(1) when login shell exits.
                  -###
                  -#### when leaving the console clear the screen to increase privacy
                  -###
                  -###if [ "$SHLVL" = 1 ]; then
                  -###    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
                  -###fi
                  +##### ~/.bash_logout: executed by bash(1) when login shell exits.
                  +####
                  +##### when leaving the console clear the screen to increase privacy
                  +####
                  +####if [ "$SHLVL" = 1 ]; then
                  +####    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
                  +####fi
Assignee
Assign to
Time tracking