From 8416361ce2d6b25ea505f2a74f747122ff3d5371 Mon Sep 17 00:00:00 2001 From: Mark Hurenkamp Date: Thu, 5 Dec 2024 00:16:49 +0100 Subject: [PATCH] Create ezkvm group, and create /etc/ezkvm and /var/ezkvm dirs through postinst script --- Cargo.toml | 2 +- debian/maintainer-scripts/postinst | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 debian/maintainer-scripts/postinst diff --git a/Cargo.toml b/Cargo.toml index c91105c..99536e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,4 +38,4 @@ priority = "optional" assets = [ [ "target/release/ezkvm", "usr/bin/", "755" ] ] - +maintainer-scripts = "debian/maintainer-scripts/" diff --git a/debian/maintainer-scripts/postinst b/debian/maintainer-scripts/postinst new file mode 100755 index 0000000..d0b3e3e --- /dev/null +++ b/debian/maintainer-scripts/postinst @@ -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 +