# Modifying /etc/profile.d/user-motd.sh

**URL:** <https://universal-blue.discourse.group/t/modifying-etc-profile-d-user-motd-sh/2305>\
**Category:** General\
**Created:** [June 14, 2024, 3:04pm UTC](https://universal-blue.discourse.group/t/modifying-etc-profile-d-user-motd-sh/2305 "2024-06-14T15:04:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/drewmoseley/32/1274_2.png) [@drewmoseley](https://universal-blue.discourse.group/u/drewmoseley)\
**Post date:** [June 14, 2024, 3:04pm UTC](https://universal-blue.discourse.group/t/modifying-etc-profile-d-user-motd-sh/2305/1 "2024-06-14T15:04:49Z")

</div>

Hi all,

I have a scenario where I am getting the motd.sh displayed twice. Basically, since enabling the login shell in ptyxis does not want to work for me, I modify my bashrc to call my .bash\_profile if it has not already. Not ideal but it does work.

I manually edited /etc/profile.d/user-motd.sh to guard against double sourcing and I’d like to submit that change back upstream. Which repo contains this shell script?

Drew

---

<div class="post-metadata">

**Author:** ![j0rge](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/j0rge/32/8_2.png) [@j0rge](https://universal-blue.discourse.group/u/j0rge)\
**Post date:** [June 14, 2024, 7:36pm UTC](https://universal-blue.discourse.group/t/modifying-etc-profile-d-user-motd-sh/2305/2 "2024-06-14T19:36:04Z")

</div>

> <https://github.com/ublue-os/config/blob/ba52c150221f50440c1a0a3c14825ee2cf40536e/build/ublue-os-just/etc-profile.d/user-motd.sh>

Thanks!
