WhitewaterFoundry / Fedora-Remix-for-WSL

Fedora Remix for Windows Subsystem for Linux.
Other
710 stars 51 forks source link

Don't modify /etc/profile directly #22

Closed rathann closed 5 years ago

rathann commented 5 years ago

Is your feature request related to a problem? Please describe. /etc/profile should not be modified without rebuilding the setup package. rpm -V setup will show it's been modified and subsequent upgrades will create /etc/profile.rpmnew.

Describe the solution you'd like Instead of modifying /etc/profile directly, you can drop a .sh (e.g. wsl.sh) file in /etc/profile.d with the contents you want. See line 65 of unmodified /etc/profile.

sirredbeard commented 5 years ago

Something like this? #23

rathann commented 5 years ago

Yes, much better. Thank you.