Skip to content

Commit

Permalink
Merge pull request #60 from olifre/fix-service-start
Browse files Browse the repository at this point in the history
goreleaser: enforce owner/group on user home and queue director
  • Loading branch information
djw8605 authored Feb 29, 2024
2 parents f4ccffc + 090a125 commit cb5858b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ jobs:
run: |
podman exec pkgtest bash -c "dnf -y install /root/xrootd-monitoring-shoveler/xrootd-monitoring-shoveler*x86_64.rpm"
- name: Check user/group, permissions on queue directory
run: |
podman exec pkgtest bash -c "getent passwd xrootd-monitoring-shoveler"
podman exec pkgtest bash -c "ls -la /var/spool/"
- name: Test createtoken command
run: |
podman exec pkgtest createtoken --help
Expand All @@ -133,8 +138,8 @@ jobs:
- name: Test shoveler service
run: |
podman exec pkgtest systemctl start xrootd-monitoring-shoveler
podman exec pkgtest systemctl status xrootd-monitoring-shoveler
podman exec pkgtest systemctl --full --lines=100 start xrootd-monitoring-shoveler
podman exec pkgtest systemctl --full --lines=100 status xrootd-monitoring-shoveler
- name: Test shoveler-status
run: |
Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,18 @@ nfpms:
type: "config|noreplace"
- src: config/xrootd-monitoring-shoveler.service
dst: /usr/lib/systemd/system/xrootd-monitoring-shoveler.service
- dst: /var/spool/xrootd-monitoring-shoveler
type: dir
file_info:
mode: 0700
owner: xrootd-monitoring-shoveler
group: xrootd-monitoring-shoveler
- dst: /var/spool/xrootd-monitoring-shoveler/queue
type: dir
file_info:
mode: 0700
owner: xrootd-monitoring-shoveler
group: xrootd-monitoring-shoveler
overrides:
rpm:
file_name_template: >-
Expand Down

0 comments on commit cb5858b

Please sign in to comment.