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:
parent
db7e0e0a6d
commit
98c2a8ff00
1 changed files with 7 additions and 0 deletions
|
@ -192,6 +192,13 @@ if [ ! -d "$DATA_SHARE" ]; then
|
||||||
mkdir -p "$DATA_SHARE"
|
mkdir -p "$DATA_SHARE"
|
||||||
fi
|
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
|
# Read infos from web
|
||||||
HASSIO_VERSION=$(curl -s $URL_VERSION | jq -e -r '.supervisor')
|
HASSIO_VERSION=$(curl -s $URL_VERSION | jq -e -r '.supervisor')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue