Skip to content

Commit

Permalink
[PLAT-12434] YNP fix XDG_RUNTIME_DIR to be set in .bashrc for non log…
Browse files Browse the repository at this point in the history
…in shells

Test Plan: tested locally

Reviewers: svarshney

Reviewed By: svarshney

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D36807
  • Loading branch information
amannijhawan committed Jul 24, 2024
1 parent 0e17c97 commit 6477bad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ systemd_dir="/etc/systemd/system"
# Enable linger for yb_user
su - {{ yb_user }} -c "loginctl enable-linger {{ yb_user }}"
su - {{ yb_user }} -c "export XDG_RUNTIME_DIR=/run/user/$(id -u {{ yb_user }})"
echo "export XDG_RUNTIME_DIR=/run/user/$(id -u {{ yb_user }})" >> {{yb_home_dir}}/.bashrc
# Configure the systemd_dir as path for user level systemd
systemd_dir="{{ yb_home_dir }}/.config/systemd/user"
# Ensure the systemd directory exists
Expand Down

0 comments on commit 6477bad

Please sign in to comment.