Skip to content

Commit

Permalink
fix debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Nov 20, 2024
1 parent 211d84a commit 7c531ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ nfpms:
src: vince.service
- dst: /etc/vince/vince.conf
src: vince.conf
- dst: /var/lib/vince-data
type: dir
file_info:
mode: 0755
owner: vince
group: vince
scripts:
preinstall: vince.pre.sh
postinstall: vince.post.sh
Expand Down
5 changes: 1 addition & 4 deletions vince.pre.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
getent passwd otelcol-otlp >/dev/null || useradd --system --user-group --no-create-home --shell /sbin/nologin vince

mkdir -p /var/lib/vince-data
chown -R vince:vince /var/lib/vince-data
getent passwd vince >/dev/null || useradd --system --user-group --no-create-home --shell /sbin/nologin vince

0 comments on commit 7c531ad

Please sign in to comment.