I wanted to create a jumpbox where the default shell was zsh, but I couldn't actually change the default shell of the users that would be connecting to the box. I also wanted to manage some symlinks in the user profile dynamically with Dotbot.
My initial idea was to add a script to /etc/profile.d
that would just dump users into /bin/zsh
, but this had several different problems, including the all-important question of "But what if I want to run Bash on purpose?"
Through a little bit of trial and error, I settled on this script located at /etc/profile.d/dotbot.sh