New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gluu-server should export JAVA_HOME, NODE_HOME and OPENDJ_HOME and modify PATH #488

Closed
yurem opened this Issue Oct 15, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@yurem
Contributor

yurem commented Oct 15, 2018

After log into Ubuntu 16 and probably other similar OS CE variables JAVA_HOME, NODE_HOME and OPENDJ_HOME, PATH are not set.

In other OS our solution with profile modification works well: https://github.com/GluuFederation/community-edition-setup/blob/master/templates/system_profile
We need to find similar approach for these OS.

@yurem yurem added this to the 3.1.5 milestone Oct 15, 2018

@mbaser

This comment has been minimized.

Collaborator

mbaser commented Oct 16, 2018

Debian Stretch is systemd and due to this compassion:

if self.os_initdaemon == 'init':

System profile is not updated. I think this comparison is needed only for:

if [ "$(ls -A /dev/pts/)" != "" ] && [ "$(ls -A /proc/)" != "" ] && [ "$(ls -A /lib/modules/)" != "" ] && [ "$(ls -A /sys/class/net/lo/)" != "" ] && [ "$(ls /dev/ | grep -vE 'null|pts')" != "" ]; then
	echo "Welcome to the Gluu Server!"
else
	echo "Gluu server is not started, please start it from root machine by service gluu-server start"
	exit
fi

So we need to split path update and these.

@mbaser

This comment has been minimized.

Collaborator

mbaser commented Oct 16, 2018

And, I am not sure why we are appending to /etc/profile rather than writing to /etc/profile.d

@yurem

This comment has been minimized.

Contributor

yurem commented Oct 16, 2018

And, I am not sure why we are appending to /etc/profile rather than writing to /etc/profile.d
It's initial approach since version 1.0. I agree it's out of date method.

We can replace this approach with /etc/profile.d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment