New way to install/run supervisor + plugins (#620)

* Use new layout for CLI/Supervisor

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix install script

* Fix config

* Add docs

* Fix shellcheck

* Fix issue

* rename package

* Fix build

* Fix apparmor
This commit is contained in:
Pascal Vizeli
2020-04-21 14:37:25 +02:00
committed by GitHub
parent 48f3045854
commit 45c62716cb
40 changed files with 244 additions and 444 deletions

View File

@@ -1,16 +1,7 @@
#!/bin/sh
set -e
# Load configs
CONFIG_FILE=/mnt/data/hassos.json
# Read configs
PROFILES_DIR="$(jq --raw-output '.apparmor // empty' ${CONFIG_FILE})"
if [ -z "${PROFILES_DIR}" ]; then
exit 0
fi
PROFILES_DIR="/mnt/data/${PROFILES_DIR}"
PROFILES_DIR="/mnt/data/supervisor/apparmor"
CACHE_DIR="${PROFILES_DIR}/cache"
REMOVE_DIR="${PROFILES_DIR}/remove"