Add opts option

This commit is contained in:
Johannes 'fish' Ziemke 2019-04-28 11:08:37 +02:00
parent 1975fd8d87
commit baa600e4b3
2 changed files with 2 additions and 1 deletions

View file

@ -1,2 +1,3 @@
config globals 'globals'
option root '/data/k3s'
option opts '--no-deploy'

View file

@ -22,7 +22,7 @@ ensure_cgroup_mount() {
start() {
ensure_cgroup_mount
start-stop-daemon -S -b -x "$EXEC" -m -p "$PIDFILE" \
-- server --no-deploy traefik \
-- server $(uci_get k3s.globals.opts) --no-deploy traefik \
--data-dir $(uci_get k3s.globals.root)
}