Skip to content

Commit afa50a2

Browse files
committed
🇨🇳 hassio for china
1 parent af7ba60 commit afa50a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant-supervised/DEBIAN/postinst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ fi
6262

6363
# Restart Docker service
6464
info "Restarting docker service"
65-
if [ "$DOCKER_STORAGE_DRIVER" = "true" ]; then
66-
sed -i 's@"storage-driver":\s*"overlay"@"storage-driver": "vfs"@g' /etc/docker/daemon.json
65+
if [ -n "$DOCKER_STORAGE_DRIVER" ]; then
66+
sed -i "s@\"storage-driver\":\s*\"overlay2\"@\"storage-driver\": \"$DOCKER_STORAGE_DRIVER\"@g" /etc/docker/daemon.json
6767
fi
6868
systemctl restart "${SERVICE_DOCKER}"
6969

0 commit comments

Comments
 (0)