When adding a shell script to an AWS EC2 Portal instance it will be unable to launch the portal.sh script to configure the product. The script itself will run fine when executed directly on the system.
It has been found that having SELINUX enabled prevents the execution of this script. It will need to be disabled in order to utilize this functionality.
To temporarily stop it,
sudo setenforce 0
The better and suggested option is to disable it completely as follows,
edit (vi) the file /etc/selinux/config
and change SELINUX=disabled
Then reboot the host o/s if changing the selinux/config file