think the canonical way in Ubuntu is:
create a new file under /etc/profile.d/
sudo vi /etc/profile.d/SCRIPT_NAME.sh
add there:
export PATH="YOUR_PATH_WITHOUT_TRAILING_SLASH:$PATH"
and give it execute permission
sudo chmod a+x /etc/profile.d/SCRIPT_NAME.sh