Create bin folders when they do not exist

When using an other prefix then /usr the bin folders are used, but not created
This commit is contained in:
Robbert Müller 2021-05-17 09:38:06 +02:00 committed by GitHub
parent db7e0e0a6d
commit 98c2a8ff00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,6 +192,13 @@ if [ ! -d "$DATA_SHARE" ]; then
mkdir -p "$DATA_SHARE"
fi
if [ ! -d "${PREFIX}/sbin" ]; then
mkdir -p "${PREFIX}/sbin"
fi
if [ ! -d "${PREFIX}/bin" ]; then
mkdir -p "${PREFIX}/bin"
fi
# Read infos from web
HASSIO_VERSION=$(curl -s $URL_VERSION | jq -e -r '.supervisor')