Create bin folders when they do not exist (#146)
When using an other prefix then /usr the bin folders are used, but not created
This commit is contained in:
parent
db7e0e0a6d
commit
5fa7341d9c
1 changed files with 7 additions and 0 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue