I have an install script that sets some environment variables. To run the script I have to use the source command.
The script has to be run as sudo because the environment variables need to be set for the root account.
The problem is you can't execute "sudo source installScript". How do I execute "source installScript" as sudo, or root user?
I already tried "sudo /bin/bash ./installScript".