Skip to content

Commit

Permalink
fix: use file.include.stat instead of file.stat
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Jul 19, 2023
1 parent a9846fc commit 00c6ebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builder/configure.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ done

for feature in "${features[@]}"; do
if [ -e "/builder/features/$feature/file.stat" ]; then
sed 's/#.*$//;/^[[:space:]]*$/d' "/builder/features/$feature/file.stat" | while read -r user group perm file; do
sed 's/#.*$//;/^[[:space:]]*$/d' "/builder/features/$feature/file.include.stat" | while read -r user group perm file; do
old_stat="$(stat -c '%A %U:%G' "$file")"
chown "$user:$group" "$file"
chmod "$perm" "$file"
Expand Down
4 changes: 2 additions & 2 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ By default only the executable bit of the files permission will be preserved whe
The other permissions will be set to read write for owner and read for group and other.
The owner of all copied files will be root by default.

To overwrite these defaults see `file.stat` below
To overwrite these defaults see `file.include.stat` below

## `file.stat`
## `file.include.stat`

A file to assign owner and permissions to files copied by `file.include`.
Each line should contain an entry of the form:
Expand Down

0 comments on commit 00c6ebb

Please sign in to comment.