On Fri, Sep 09, 2016 at 07:21:59PM +0200, Gabriele Pohl wrote: > I tried to apply a recipe, that I found in your mailing list archive > https://www.redhat.com/archives/sclorg/2016-June/msg00008.html > > test -f /opt/rh/ruby193/enable && source /opt/rh/ruby193/enable > > I stored this command to /etc/profile.d/ruby.sh > > It resulted in having ruby193 enabled in all user shells. > > But the error in postfix aliases context was > not solved by it.
Because profile scripts are executed only for login and interactive shells. The scripts run by postfix are neither of them. Either you can play with BASH_ENV environment variable (read bash(1) manual) or, I recommend, create a simple wrapper around your ruby script that will siply execute the real script in the enabled enviroment, like: #!/bin/sh scl enable ruby193 /the/real/script -- Petr
signature.asc
Description: PGP signature
_______________________________________________ SCLorg mailing list [email protected] https://www.redhat.com/mailman/listinfo/sclorg
