From 5fa7341d9cf14e62741e079d623bb388b9718109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robbert=20M=C3=BCller?= Date: Mon, 17 May 2021 09:43:47 +0200 Subject: [PATCH] Create bin folders when they do not exist (#146) When using an other prefix then /usr the bin folders are used, but not created --- installer.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer.sh b/installer.sh index e0757d4..7c95e8a 100644 --- a/installer.sh +++ b/installer.sh @@ -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')