Blob Blame History Raw
#!/bin/bash

. /opt/rh/rh-passenger40/service-environment
for sclname in $RH_PASSENGER40_RUBY22_SCLS_ENABLED ; do
    if [ -f /opt/rh/$sclname/enable ]; then
        . /opt/rh/$sclname/enable
        export X_SCLS="$X_SCLS $sclname"
    fi
done

export RUBYLIB="/opt/rh/rh-passenger40/root/usr/lib64/passenger22${RUBYLIB:+:${RUBYLIB}}"

ruby "$@"