From 706a07983efae2a12c891754c34e478638012881 Mon Sep 17 00:00:00 2001 From: hgy59 Date: Sat, 14 Jan 2023 11:25:05 +0100 Subject: [PATCH] fix permissions to site-packages for DSM<7 --- spk/homeassistant/src/service-setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spk/homeassistant/src/service-setup.sh b/spk/homeassistant/src/service-setup.sh index 8e1652b8b299..05519e876d33 100644 --- a/spk/homeassistant/src/service-setup.sh +++ b/spk/homeassistant/src/service-setup.sh @@ -70,4 +70,10 @@ service_postinst () echo ${separator} echo "Install packages for homeassistant.components from index" pip install --disable-pip-version-check --no-input --cache-dir ${PIP_CACHE_DIR} --requirement ${SYNOPKG_PKGDEST}/share/postinst_components_requirements.txt + + + if [ ${SYNOPKG_DSM_VERSION_MAJOR} -lt 7 ]; then + # ensure package user has access to the virtual env packages, installed as root + set_unix_permissions ${SYNOPKG_PKGDEST}/env + fi }