summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-15 19:11:53 +0300
committerDevaev Maxim <[email protected]>2018-12-15 19:11:53 +0300
commit0d0fdd9b7193577db6e36662365ac1c38ccbc3c7 (patch)
tree205734962dce8a593c839c91ab4080fb6afd75e2 /PKGBUILD
parent860a48dd847e6af255bc043f903a3699257ce884 (diff)
don't install systemd services to configs.default
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2f62cb72..7c17dec2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -42,13 +42,13 @@ package() {
python setup.py install --root="$pkgdir"
mkdir -p "$pkgdir/usr/lib/systemd/system"
- install -Dm644 configs/systemd/kvmd.service "$pkgdir/usr/lib/systemd/system/kvmd.service"
- install -Dm644 configs/systemd/kvmd-tc358743.service "$pkgdir/usr/lib/systemd/system/kvmd-tc358743.service"
+ cp configs/systemd/*.service "$pkgdir/usr/lib/systemd/system"
mkdir -p "$pkgdir/usr/share/kvmd"
cp -r web "$pkgdir/usr/share/kvmd"
cp -r extras "$pkgdir/usr/share/kvmd"
cp -r configs "$pkgdir/usr/share/kvmd/configs.default"
+ rm -rf "$pkgdir/usr/share/kvmd/configs.default/systemd"
sed -i -e "s/^#PROD//g" "$pkgdir/usr/share/kvmd/configs.default/nginx/nginx.conf"
find "$pkgdir" -name ".gitignore" -delete
find "$pkgdir/usr/share/kvmd/configs.default" -type f -exec chmod 444 '{}' \;