[Bug 1173321] Move /etc/skel/* files to /usr/etc/skel ?
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1173321
http://bugzilla.opensuse.org/show_bug.cgi?id=1173321#c18
Dr. Werner Fink
Created attachment 841688 [details] useradd.local.patch
This patch for useradd.local implements copying of skel files from /usr/etc/skel, which don't exist in /etc/skel.
With shopt -s dotglob it would be possible to use shopt -s dotglob for file in ${USRSKELDIR}/*; do file=${file##*/} # Only copy if not exist yet, i.e. does *not* exist in /etc/skel, which is still # being preferred ... test -e $HOMEDIR/$file && continue cp -a $USRSKELDIR/$file $HOMEDIR chown -R $USER.$GID $HOMEDIR/$file done -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com