Skip to content

Commit b328d54

Browse files
committed
update dev scripts for running sandbox with taint mode
1 parent 18c2756 commit b328d54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dev_scripts/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ EOF
5757

5858
configure_plugins() {
5959
banner CONFIGURE PLUGINS
60-
munin-node-configure --suggest --shell --families=contrib,auto --remove-also | sh -x
60+
dev_scripts/run munin-node-configure --suggest --shell --families=contrib,auto --remove-also | sh -x
6161
}
6262

6363
configure_node() {

dev_scripts/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ if [ -z "${1:-}" ]; then
1717
usage
1818
fi
1919

20-
if command=$(command -v "$1"); then
21-
echo "# [dev/run] Found: ${command}"
22-
echo "# [dev/run] Command line: " "$@"
23-
exec "$@"
20+
if [ -x "${BASEDIR}/sandbox/bin/$1" ]; then
21+
echo "# [dev/run] Found: ${BASEDIR}/sandbox/bin/$1"
22+
echo "# [dev/run] Command line: /usr/bin/perl -T -Mlib=${BASEDIR}/sandbox/lib/perl5/ ${BASEDIR}/sandbox/bin/$@"
23+
exec /usr/bin/perl -T -Mlib="${BASEDIR}/sandbox/lib/perl5/" "${BASEDIR}/sandbox/bin/$@"
2424
else
2525
echo >&2 "Failed to find '$1'"
2626
exit 1

0 commit comments

Comments
 (0)