CA API Developer Portal: Portal.sh won't run through AWS User data

book

Article ID: 105942

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

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.

Environment

Release:
Component: APIPRD

Resolution

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,
please run.
sudo setenforce 0
(zero)

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