From a44d12c0be0fdd82a221de0fa7077a75ba3faa7c Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 12 May 2015 14:56:28 +0200 Subject: [PATCH] Add start wrapper to onegate tool It first sources /tmp/one_env file to get context data --- base/usr/bin/onegate | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 base/usr/bin/onegate diff --git a/base/usr/bin/onegate b/base/usr/bin/onegate new file mode 100755 index 0000000..d63dc80 --- /dev/null +++ b/base/usr/bin/onegate @@ -0,0 +1,12 @@ +#!/bin/bash + +ENV_FILE=/tmp/one_env + +if [ -f $ENV_FILE ]; then + . $ENV_FILE +fi + +DIR=$(dirname $(readlink -f $0)) + +ruby $DIR/onegate.rb $* +