Commit 078376a4 authored by Johannes Barthel's avatar Johannes Barthel
Browse files

fix venv path

parent 5be74376
......@@ -24,6 +24,7 @@ python3 -m venv "./${BUILD_DIR}/opt/${PKG_NAME}/venv"
source "./${BUILD_DIR}/opt/${PKG_NAME}/venv/bin/activate"
xargs -L 1 pip install < requirements.txt # hack because greenswitch needs wheel but doesn't specify it as a dependency, so the install order needs to be kept this way
)
rm -rf "./${BUILD_DIR}/opt/${PKG_NAME}/venv/bin"
# metadata, systemd service
mkdir -p "${BUILD_DIR}/DEBIAN"
......@@ -31,6 +32,7 @@ cat > "${BUILD_DIR}/DEBIAN/postinst" <<EOL
#!/bin/bash -xe
chmod +x /opt/senfsip-moderated-mute/events.py
python3 -m venv /opt/senfsip-moderated-mute/venv
systemctl daemon-reload
systemctl enable senfsip-moderated-mute.service
......@@ -58,8 +60,8 @@ Priority: optional
Architecture: $(dpkg --print-architecture)
Maintainer: Johannes Barthel <johannes@senfcall.de>
Description: enforce room microphone permissions for dial-in bbb users
Depends: bbb-freeswitch-core
Build-Depends: python3-venv
Depends: bbb-freeswitch-core, python3-venv
Build-Depends: python3-dev
EOL
fakeroot dpkg-deb --build "${BUILD_DIR}"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment