Skip to content

Commit

Permalink
init: fix skel permissions, Fix #1144, Fix #1081
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Feb 3, 2024
1 parent 98cf591 commit f7e8532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -2002,10 +2002,9 @@ if [ -n "${DISTROBOX_HOST_HOME-}" ] && [ -d "/etc/skel" ]; then
if [ ! -f "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" ] &&
[ ! -L "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" ]; then
cp "${skel_file}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}"
chown "${container_user_uid}":"${container_user_gid}" \
"${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}"
fi
done
chown -R "${container_user_uid}":"${container_user_gid}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}"
fi
###############################################################################

Expand Down

0 comments on commit f7e8532

Please sign in to comment.