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 +