Skip to content

Commit

Permalink
/etc/skel: fix find/cp error with alpine images #107
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Jan 24, 2019
1 parent 7588b97 commit add7992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,9 @@ create_dockerrc() { # create dockerrc: This script runs as root (or
[ "$Sharehosthome" = "no" ] && echo " echo mkdir -p $Containeruserhome"

echo " echo '# Copy files from /etc/skel into empty HOME'"
echo " echo '[ \"\$(find $Containeruserhome -mindepth 1 -print -quit)\" ] || cp -R /etc/skel/. $Containeruserhome'"
echo " echo '[ -d /etc/skel ] && {'"
echo " echo ' [ \"\$(find $Containeruserhome -mindepth 1 -print)\" ] || cp -R /etc/skel/. $Containeruserhome'"
echo " echo '}'"
[ "$Sharehosthome" = "no" ] && {
while read -r Line; do
echo " echo '# create soft links of shared folders to fake home'"
Expand Down

0 comments on commit add7992

Please sign in to comment.