slitaz-tools rev 320

tazctrlbox: Avoid removing existind datat in existing user dir
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 28 02:46:35 2009 +0100 (2009-03-28)
parents c60fa66fdbc7
children d3dedd13046b
files tinyutils/tazctrlbox
line diff
     1.1 --- a/tinyutils/tazctrlbox	Sun Mar 22 11:08:47 2009 +0000
     1.2 +++ b/tinyutils/tazctrlbox	Sat Mar 28 02:46:35 2009 +0100
     1.3 @@ -155,7 +155,7 @@
     1.4  				<action>adduser -D $NEW_USER</action>
     1.5  				<action>echo "$NEW_USER:$PASSWD" | chpasswd</action>
     1.6  				<action>adduser -G audio $NEW_USER</action>
     1.7 -				<action>rm -rf /home/$NEW_USER</action>
     1.8 +				<action>rmdir /home/$NEW_USER</action>
     1.9  				<action>cp -a /etc/skel /home/$NEW_USER</action>
    1.10  				<action>cp /root/.xinitrc /home/$NEW_USER</action>
    1.11  				<action>chown -R $NEW_USER:$NEW_USER /home/$NEW_USER</action>