wok rev 17249

QtWeb, dooble, libQtGui, ncmpcpp, remind, tiptop, tmux-mem-cpu-load: fix ownership
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 19 12:21:07 2014 +0200 (2014-10-19)
parents 26db6f06afaf
children 35522d3aa230
files QtWeb/receipt dooble/receipt libQtGui/receipt ncmpcpp/receipt remind/receipt tiptop/receipt tmux-mem-cpu-load/receipt
line diff
     1.1 --- a/QtWeb/receipt	Sun Oct 19 11:51:39 2014 +0200
     1.2 +++ b/QtWeb/receipt	Sun Oct 19 12:21:07 2014 +0200
     1.3 @@ -81,6 +81,6 @@
     1.4  		[ -f /home/$i/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf ] && continue
     1.5  		mkdir -p $1/home/$i/.config/QtWeb.NET
     1.6  		cp $1/tmp/QtWeb\ Internet\ Browser.conf $1/home/$i/.config/QtWeb.NET
     1.7 -		chroot $1/ chown -R $i.users /home/$i/.config/QtWeb.NET
     1.8 +		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config/QtWeb.NET
     1.9  	done
    1.10  }
     2.1 --- a/dooble/receipt	Sun Oct 19 11:51:39 2014 +0200
     2.2 +++ b/dooble/receipt	Sun Oct 19 12:21:07 2014 +0200
     2.3 @@ -68,7 +68,7 @@
     2.4  		mkdir -p $1/home/$i/.dooble/Dooble
     2.5  		cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble
     2.6  		rm $1/home/$i/.local/share/applications/dooble.desktop
     2.7 -		chroot $1/ chown -R $i.users /home/$i/.dooble
     2.8 +		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.dooble
     2.9  	done
    2.10  }
    2.11  
     3.1 --- a/libQtGui/receipt	Sun Oct 19 11:51:39 2014 +0200
     3.2 +++ b/libQtGui/receipt	Sun Oct 19 12:21:07 2014 +0200
     3.3 @@ -32,6 +32,6 @@
     3.4          for i in $(ls $1/home 2> /dev/null); do
     3.5                  [ -f /home/$i/.config/Trolltech.conf ] && continue
     3.6                  cp $1/etc/skel/.config/Trolltech.conf $1/home/$i/.config
     3.7 -                chroot $1/ chown -R $i.users /home/$i/.config
     3.8 +                chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config
     3.9          done
    3.10  }
     4.1 --- a/ncmpcpp/receipt	Sun Oct 19 11:51:39 2014 +0200
     4.2 +++ b/ncmpcpp/receipt	Sun Oct 19 12:21:07 2014 +0200
     4.3 @@ -46,7 +46,7 @@
     4.4  		cp -a $1/etc/skel/.ncmpcpp $1/home/$i/
     4.5  		sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' /home/$i/.ncmpcpp/config
     4.6  		# Change permissions also
     4.7 -		chroot $1/ chown -R $i.users /home/$i/.ncmpcpp
     4.8 +		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.ncmpcpp
     4.9  	done
    4.10  	status
    4.11  }
     5.1 --- a/remind/receipt	Sun Oct 19 11:51:39 2014 +0200
     5.2 +++ b/remind/receipt	Sun Oct 19 12:21:07 2014 +0200
     5.3 @@ -40,7 +40,7 @@
     5.4  		[ -f $1/home/$i/.reminders ] && continue
     5.5  		echo -n "Creating config file for $i ..."
     5.6  		touch $1/home/$i/.reminders 
     5.7 -		chroot $1/ chown $i.users /home/$i/.reminders
     5.8 +		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.reminders
     5.9  		status
    5.10  	done
    5.11  }
     6.1 --- a/tiptop/receipt	Sun Oct 19 11:51:39 2014 +0200
     6.2 +++ b/tiptop/receipt	Sun Oct 19 12:21:07 2014 +0200
     6.3 @@ -34,7 +34,7 @@
     6.4  	for i in $(ls $1/home 2> /dev/null); do
     6.5  		[ -f /home/$i/.tiptoprc ] && continue
     6.6  		cp $1/etc/skel/.tiptoprc $1/home/$i
     6.7 -		chroot $1/ chown $i.users /home/$i/.tiptoprc
     6.8 +		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tiptoprc
     6.9  	done
    6.10  }
    6.11  
     7.1 --- a/tmux-mem-cpu-load/receipt	Sun Oct 19 11:51:39 2014 +0200
     7.2 +++ b/tmux-mem-cpu-load/receipt	Sun Oct 19 12:21:07 2014 +0200
     7.3 @@ -39,7 +39,7 @@
     7.4  		grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue
     7.5  		echo -n "Checking for .tmux.conf for $i ..."
     7.6  		cp -a $1/etc/skel/.tmux.conf /home/$i/
     7.7 -		chroot $1/ chown $i.users /home/$i/.tmux.conf
     7.8 +		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tmux.conf
     7.9  		status
    7.10  	done
    7.11  }