From 1623367b13a16c00a411b6dced44c69f4451e89e Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 21 Oct 2022 00:03:57 -0700 Subject: [PATCH] commit `ensure-perms` script for image post-processing this was created weeks ago and not committed --- scripts/ensure-perms | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/ensure-perms diff --git a/scripts/ensure-perms b/scripts/ensure-perms new file mode 100755 index 000000000..321012d1e --- /dev/null +++ b/scripts/ensure-perms @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# ensures perms on a newly-built distribution are good. +# usage: sudo ensure-perms /path/to/nix + +nix_path=$1 +chown root:root -R $nix_path +chown root:nixbld $nix_path/store