From a105112f5fa9250ca6164ee93969ff5a53775623 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Tue, 21 Nov 2017 00:56:22 +0900 Subject: [PATCH] =?UTF-8?q?path=20=EB=B6=80=EB=B6=84=20=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PKGBUILD | 2 +- air_monitor | 2 +- air_monitor.service | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 81d6a33..83df88e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -35,4 +35,4 @@ package() { "${pkgdir}/opt/${pkgname}/venv/bin/pip" install -r requirements.txt install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/${pkgname}/${pkgname}.service" -} \ No newline at end of file +} diff --git a/air_monitor b/air_monitor index dacc730..c52823e 100755 --- a/air_monitor +++ b/air_monitor @@ -1,2 +1,2 @@ #!/bin/bash -exec python main.py \ No newline at end of file +PATH=$VIRTUAL_ENV/bin:$PATH exec python main.py \ No newline at end of file diff --git a/air_monitor.service b/air_monitor.service index 17554e8..0d12725 100644 --- a/air_monitor.service +++ b/air_monitor.service @@ -5,7 +5,6 @@ After=syslog.target [Service] WorkingDirectory=/opt/air_monitor Environment=VIRTUAL_ENV=/opt/air_monitor/venv/ -Environment=PATH=$VIRTUAL_ENV/bin:$PATH ExecStart=/opt/air_monitor/air_monitor TimeoutStartSec=5 User=nobody