path 부분 이동
This commit is contained in:
parent
993abb0363
commit
a105112f5f
2
PKGBUILD
2
PKGBUILD
|
@ -35,4 +35,4 @@ package() {
|
||||||
"${pkgdir}/opt/${pkgname}/venv/bin/pip" install -r requirements.txt
|
"${pkgdir}/opt/${pkgname}/venv/bin/pip" install -r requirements.txt
|
||||||
|
|
||||||
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/${pkgname}/${pkgname}.service"
|
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/${pkgname}/${pkgname}.service"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec python main.py
|
PATH=$VIRTUAL_ENV/bin:$PATH exec python main.py
|
|
@ -5,7 +5,6 @@ After=syslog.target
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/air_monitor
|
WorkingDirectory=/opt/air_monitor
|
||||||
Environment=VIRTUAL_ENV=/opt/air_monitor/venv/
|
Environment=VIRTUAL_ENV=/opt/air_monitor/venv/
|
||||||
Environment=PATH=$VIRTUAL_ENV/bin:$PATH
|
|
||||||
ExecStart=/opt/air_monitor/air_monitor
|
ExecStart=/opt/air_monitor/air_monitor
|
||||||
TimeoutStartSec=5
|
TimeoutStartSec=5
|
||||||
User=nobody
|
User=nobody
|
||||||
|
|
Loading…
Reference in New Issue