Skip to content

Commit

Permalink
Create ezkvm group, and create /etc/ezkvm and /var/ezkvm dirs through…
Browse files Browse the repository at this point in the history
… postinst script
  • Loading branch information
hurenkam committed Dec 4, 2024
1 parent 6b12853 commit 8416361
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ priority = "optional"
assets = [
[ "target/release/ezkvm", "usr/bin/", "755" ]
]

maintainer-scripts = "debian/maintainer-scripts/"
11 changes: 11 additions & 0 deletions debian/maintainer-scripts/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
addgroup ezkvm

mkdir /etc/ezkvm
chmod 775 /etc/ezkvm
chown root:ezkvm /etc/ezkvm

mkdir /var/ezkvm
chmod 775 /var/ezkvm
chown root:ezkvm /var/ezkvm

0 comments on commit 8416361

Please sign in to comment.