aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2015-11-21 13:18:56 +0700
committerMhd Sulhan <ms@kilabit.info>2015-11-21 13:18:56 +0700
commit8f0e5af02a1d9145fcfeb1ecee094a5078fa84bd (patch)
tree503f7c3042e3c0bbc0f82bef393fb71e6ab95597 /scripts
parent7af083628cebc2772f4dcb3a2ddbb00c19ccff89 (diff)
downloadarch-docker-8f0e5af02a1d9145fcfeb1ecee094a5078fa84bd.tar.xz
scripts/rootfs.sh: set owner and group of copied file to root.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rootfs.sh2
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
}