Tried configuring dbmarlin on a RHEL7.9 box. It took some time to figure out why it did not succeed, but configure passes $LANG down to postgres lc_messages. When LANG is not set, havoc awaits;-). A simple test in configure would avoid that:
<pre>
if (( $EUID == 0 )); then
"Please don't run as root. We recommend you create a dbmarlin user."
exit
fi
DIR="$(cd "$(dirname "$0")" && pwd)"
</pre>
2 years ago
1 year ago
This was added in from DBmarlin v2.11 and later.
0 1 year ago Reply
2 years ago
Thanks, Lennart we will get that change included in an upcoming release.
The only time I have seen LANG not set previously was for customers deploying to Docker and they needed to set ENV LANG en_US.UTF-8 for example in their Dockerfile.
0 2 years ago Reply
Might just be in our setup, but I see it for all our RHEL7.9 boxes. RHEL8.7 and above seems to have LANG set
0 2 years ago Reply
@Lennart Jonsson:
We have RHEL 7.9 as one of our test environments and on ours, LANG is set. Not sure why we have it and yours doesn't but in any case, we will add the check in configure.sh as you suggested.
0 2 years ago Reply