Moving config from susemanager.spec
Hello, whilst cleaning up some more error messages, I came across this section in the susemanager.spec https://github.com/uyuni-project/uyuni/blob/master/susemanager/susemanager.s... %posttrans # make sure our database will use correct encoding . /etc/sysconfig/postgresql if [ -z $POSTGRES_LANG ]; then grep "^POSTGRES_LANG" /etc/sysconfig/postgresql > /dev/null 2>&1 if [ $? = 0 ]; then sed -i -e "s/^POSTGRES_LANG.*$/POSTGRES_LANG=\"en_US.UTF-8\"/" /etc/sysconfig/postgresql else echo "POSTGRES_LANG=\"en_US.UTF-8\"" >> /etc/sysconfig/postgresql fi fi Can I move this to "/susemanager/bin/mgr-setup" or is it to clean some legacy installations? Best wishes, Stefan
On 14/07/2021 08.09, Stefan Bluhm wrote:
Can I move this to "/susemanager/bin/mgr-setup" or is it to clean some legacy installations?
IIRC changing the Postgres language after the fact will not magically solve problems, the setting really needs to be correct from the start. So I do not think it's a big deal to move it to mgr-setup (unless somebody else has objections). HTH Regards, -- Silvio Moioli SUSE Manager Development Team
participants (2)
-
Silvio Moioli
-
Stefan Bluhm