Files @ e15b53d59517
Branch filter:

Location: majic-ansible-roles/roles/common/files/user_profile_d.sh

branko
MAR-67: Deploy /etc/profile.d/ configuration file that allows reading user-specific profile config files from ~/.profile.d/ directory. Create home directory for web application users in order to get all the fancy colouring etc. Deploy virtual environment activation script inside of wsgi_website role as profile.d script.
1
2
3
4
5
6
7
8
# Read user-specific profile "configuration" files.
if [ -d "$HOME/.profile.d" ]; then
    for conf in "$HOME"/.profile.d/*.sh; do
        if [ -r "$conf" ]; then
            . "$conf"
        fi
    done
fi