diff options
| author | Mhd Sulhan <ms@kilabit.info> | 2015-11-21 13:18:56 +0700 |
|---|---|---|
| committer | Mhd Sulhan <ms@kilabit.info> | 2015-11-21 13:18:56 +0700 |
| commit | 8f0e5af02a1d9145fcfeb1ecee094a5078fa84bd (patch) | |
| tree | 503f7c3042e3c0bbc0f82bef393fb71e6ab95597 | |
| parent | 7af083628cebc2772f4dcb3a2ddbb00c19ccff89 (diff) | |
| download | arch-docker-8f0e5af02a1d9145fcfeb1ecee094a5078fa84bd.tar.xz | |
scripts/rootfs.sh: set owner and group of copied file to root.
| -rwxr-xr-x | scripts/rootfs.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/rootfs.sh b/scripts/rootfs.sh index 377122b..000beda 100755 --- a/scripts/rootfs.sh +++ b/scripts/rootfs.sh @@ -56,8 +56,10 @@ rootfs_copy() { echo " from $k to $FILES[$k]" if [ -f $k ]; then cp $k $FILES[$k] + chown root:root $FILES[$k] elif [ -d $k ]; then cp -r $k $FILES[$k] + chown -R root:root $FILES[$k] fi done } |
