snap-gnocchi/snap/bin/run-wrap
James Page 6924d7c0b2 Gnocchi 4.0.3 (#13)
* Upgrade to 4.0.x series

This currently requires that we override the LD_LIBRARY_PATH
in the environment so that the ceph-common library is correctly
loaded by librados2.

* Add shim wrapper to pickup ceph package library path

* Disable global environment hack
2017-10-23 11:05:39 +01:00

10 lines
249 B
Bash
Executable File

#!/bin/sh
# NOTE(jamespage): This is a shim that really should not be required.
set -e
export CEPH_LIBRARY_PATH=`find $SNAP/usr/lib -name "libceph-common.so" -exec dirname {} \;`
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CEPH_LIBRARY_PATH
exec $@