Skip to content
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

Fix /etc/environment error #242

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Conversation

anyuta1166
Copy link
Contributor

I've noticed the following error in system log:

systemd[3456620]: /usr/lib/environment.d/99-environment.conf:2: invalid variable name "export PATRONICTL_CONFIG_FILE", ignoring.

/usr/lib/environment.d/99-environment.conf is a symlink to /etc/environment.

Documentation says that the /etc/environment file must consist of simple NAME=VALUE pairs on separate lines.

According to this we should probably remove "export" before the variable name.

@vitabaks
Copy link
Owner

@anyuta1166 That makes sense, thanks!

Ensure that the information in the environment file is in the Name=Value format. Unlike profile scripts, the environment file is not a shell script and does not accept data in any format other than the Name=Value format.

https://www.ibm.com/docs/en/aix/7.2?topic=files-environment-file

@vitabaks vitabaks merged commit eed21cb into vitabaks:master Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants