#!/bin/sh # The interpreter on all binary files will be set to the bundled interpreter. set -eu root=${1} interpreter="${root%/}/bin/ld-linux.so" echo "Setting interpreter on ${root%/}/bin/* to $interpreter" cd $root for f in ${root%/}/bin/* ${root%/}/jre/bin/*; do ${root%/}/bin/patchelf --set-interpreter $interpreter $f 2>/dev/null || true done