Merge branch 'master' of builder:git/spark-rc

This commit is contained in:
Jack L. Frost 2015-06-16 16:45:40 +03:00
commit 79bccd989e

9
rc.in
View File

@ -31,13 +31,14 @@ rc.motd() {
}
rc.tmpfiles() {
printf '%s\n' "${cfg_tmpdirs[@]}" | while IFS=':' read dir perm; do
mkdir -v -m "${perm:-755}" "$dir"
printf '%s\n' "${cfg_tmpdirs[@]}" | while IFS=':' read dir perm own grp; do
install -v -d -m "${perm:-755}" -o "${own:-root}" -g "${grp:-root}" "$dir" 2>/dev/null
done
printf '%s\n' "${cfg_tmpfiles[@]}" | while IFS=':' read file perm; do
printf '%s\n' "${cfg_tmpfiles[@]}" | while IFS=':' read file perm own grp; do
> "$file"
chmod -v "${perm:-644}" "$file"
chmod -c "${perm:-644}" "$file"
chown -c "${own:-root}:${grp:-root}" "$file"
done
}