From f1eccd2f3f1e69c0e4a354cf5c70fb43054b6611 Mon Sep 17 00:00:00 2001 From: ggmartins Date: Wed, 23 Dec 2020 18:28:43 -0600 Subject: [PATCH] fix: .deb venv path --- package/deb/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/package/deb/build.sh b/package/deb/build.sh index 4ebf6aa..7658c8e 100755 --- a/package/deb/build.sh +++ b/package/deb/build.sh @@ -11,6 +11,7 @@ cp ../../env_template netmicroscope-daemon/usr/local/src/netmicroscope-daemon/ cp ../../appmonitor.py netmicroscope-daemon/usr/local/src/netmicroscope-daemon/ cp -R ../../appmonitor/ netmicroscope-daemon/usr/local/src/netmicroscope-daemon/ cp -R ../../venv/ netmicroscope-daemon/usr/local/src/netmicroscope-daemon/ +sed -i "s/VIRTUAL_ENV=\"\/home\/gmartins\/nm\/netmicroscope\-daemon\/venv\"/VIRTUAL_ENV=\"\/usr\/local\/src\/netmicroscope\-daemon\/venv\/\"/" netmicroscope-daemon/usr/local/src/netmicroscope-daemon/venv/bin/activate sed -i 's/'${version_deb}'/'${version_pyc}'/g' netmicroscope-daemon/DEBIAN/control fakeroot dpkg-deb --build netmicroscope-daemon mv netmicroscope-daemon.deb netmicroscope-daemon-v${version_pyc}.deb