commit ensure-perms script for image post-processing

this was created weeks ago and not committed
This commit is contained in:
2022-10-21 00:03:57 -07:00
parent a2856a3601
commit 1623367b13

8
scripts/ensure-perms Executable file
View File

@@ -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