Skip to content

Commit

Permalink
fix permissions to site-packages for DSM<7
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Jan 14, 2023
1 parent 8f73961 commit 87f4a4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spk/homeassistant/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 87f4a4b

Please sign in to comment.