permit running 'wedo' without script installation
This commit is contained in:
1 parent
3914d46934
commit
2daa5f7d6f
2 files changed
+5
-4
No files matched your search
@@ -9,8 +9,8 @@ Each host needs to have the following installed
|
||||
|
||||
- `wedo` and `docker-ns` from the weave sub-directory. Install these
|
||||
somewhere in the root user's path, e.g. `/usr/local/bin'.
|
||||
- [pipework][], by Jérôme Petazzoni. This too needs to be installed in
|
||||
the root user's path.
|
||||
- [pipework][], by Jérôme Petazzoni. Install this in the same place as
|
||||
the aforementioned scripts.
|
||||
|
||||
[pipework]: https://raw.githubusercontent.com/jpetazzo/pipework/master/pipework
|
||||
|
||||
|
||||
+3
-2
@@ -5,6 +5,7 @@ BRIDGE=weave
|
||||
CONTAINER_IFNAME=ethwe
|
||||
MTU=65535
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f $0))
|
||||
COMMAND=$1
|
||||
IPADDR=$2
|
||||
shift 2
|
||||
@@ -41,8 +42,8 @@ case "$COMMAND" in
|
||||
;;
|
||||
esac
|
||||
|
||||
pipework $BRIDGE -i $CONTAINER_IFNAME $CONTAINER $IPADDR 1>&2
|
||||
${SCRIPT_DIR}/pipework $BRIDGE -i $CONTAINER_IFNAME $CONTAINER $IPADDR 1>&2
|
||||
|
||||
docker-ns $CONTAINER ethtool -K $IFACE tx off > /dev/null
|
||||
${SCRIPT_DIR}/docker-ns $CONTAINER ethtool -K $IFACE tx off > /dev/null
|
||||
|
||||
echo $CONTAINER
|
||||
Reference in new issue
Block a user