k3s/scripts/dev-server.sh

14 lines
242 B
Bash
Raw Normal View History

2019-01-01 08:23:01 +00:00
#!/bin/bash
set -e
2019-01-22 21:14:58 +00:00
mkdir -p $(dirname $0)/../bin
2019-01-01 08:23:01 +00:00
cd $(dirname $0)/../bin
echo Running
2019-03-08 22:47:44 +00:00
ARGS="--disable-agent"
if echo -- "$@" | grep -q rootless; then
ARGS=""
PATH=$(pwd):$PATH
fi
go run -tags "apparmor" ../main.go server $ARGS "$@"