Mantis - Resin
Viewing Issue Advanced Details
2783 minor always 07-11-08 13:34 07-14-08 09:15
ferg  
ferg  
normal  
closed 3.1.6  
fixed  
none    
none 3.2.0  
0002783: environment variables in resin.conf
(rep by Robert Heerdink)

We need to make use of an environmental variable inside of the resin.conf of Resin 3.0.x on Linux. We have tried several variations but it is obvious that the variable is not being used.

Here is what we added to the /etc/init.d/resin :

ARCH=`uname -i`
export ARCH

Here is what we tried in the resin/conf/resin.conf:

<tree-loader path="${resin.home}/lib-${ARCH}"/>
<tree-loader path="${resin.home}/lib-$ARCH"/>

It works if we hard code the path in resin/conf/resin.conf:

<tree-loader path="${resin.home}/lib-i386"/>

Can we use shell/OS environmental variables in resin.conf? Anything in the EL functions/variables which would allow us to detect the OS architecture inside the resin.conf?

Notes
(0003271)
ferg   
07-14-08 09:15   
server/2l16