From 4dc248cfe47b348473fdadd49570d5ae91d3d9c0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 27 Dec 2022 09:17:21 -0500 Subject: [PATCH] Update homeassistant-install.sh fuse-overlayfs option --- setup/homeassistant-install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/homeassistant-install.sh b/setup/homeassistant-install.sh index 1c42053c..5e7e83f7 100644 --- a/setup/homeassistant-install.sh +++ b/setup/homeassistant-install.sh @@ -101,6 +101,13 @@ PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer") msg_info "Installing Docker $DOCKER_LATEST_VERSION" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) +if [ "$ST" == "yes" ]; then +VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +cd /usr/local/bin +curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64 +chmod 755 /usr/local/bin/fuse-overlayfs +cd ~ +fi cat >$DOCKER_CONFIG_PATH <<'EOF' { "log-driver": "journald"