1
0
Fork 0

air_monitor 로 이름 바꿈

This commit is contained in:
Sangbum Kim 2017-09-24 23:34:23 +09:00
parent 34574ad57a
commit 0ad75c471b
2 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@ replaces=('air')
options=('!buildflags') options=('!buildflags')
depends=('python') depends=('python')
makedepends=('python' 'git') makedepends=('python' 'git')
source=('git+https://amuz.es/src/infra/air.git') source=('$pkgname:git+https://amuz.es/src/infra/air.git')
md5sums=('SKIP') md5sums=('SKIP')
@ -26,13 +26,13 @@ pkgver() {
} }
package() { package() {
mkdir -p "${pkgdir}/opt/air" mkdir -p "${pkgdir}/opt/${air_monitor}"
cd "srcdir/${pkgname}" cd "srcdir/${pkgname}"
git archive master | tar -x -C "$pkgdir/opt/air" git archive master | tar -x -C "$pkgdir/opt/${pkgname}"
cd "${pkgdir}/opt/air" cd "${pkgdir}/opt/${pkgname}"
python -m venv --clear --symlinks venv python -m venv --clear --symlinks venv
"${pkgdir}/opt/air/bin/pip" install -r requirements.txt "${pkgdir}/opt/air/bin/pip" install -r requirements.txt
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/${pkgname}/air.service" install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/${pkgname}/${pkgname}.service"
} }

View File

@ -3,8 +3,8 @@ Description=Air monitering Service
After=syslog.target After=syslog.target
[Service] [Service]
WorkingDirectory=/opt/air WorkingDirectory=/opt/air_monitor
ExecStart=/opt/air/venv/bin/python run.py ExecStart=/opt/air_monitor/venv/bin/python run.py
TimeoutStartSec=5 TimeoutStartSec=5
User=nobody User=nobody
Group=nobody Group=nobody
@ -16,8 +16,8 @@ NotifyAccess=all
PrivateDevices=yes PrivateDevices=yes
PrivateTmp=yes PrivateTmp=yes
ProtectSystem=full ProtectSystem=full
ReadWriteDirectories=/opt/air ReadWriteDirectories=/opt/air_monitor
#ProtectHome=yes ProtectHome=yes
NoNewPrivileges=yes NoNewPrivileges=yes