wok-6.x diff tmux-mem-cpu-load/receipt @ rev 17081
Add: tramys-server and tramys-client (yesterday version for history).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 24 22:43:01 2014 +0300 (2014-08-24) |
parents | e10c58dd2635 |
children | ce9cbd90365a |
line diff
1.1 --- a/tmux-mem-cpu-load/receipt Thu Dec 26 13:52:49 2013 +0000 1.2 +++ b/tmux-mem-cpu-load/receipt Sun Aug 24 22:43:01 2014 +0300 1.3 @@ -31,14 +31,15 @@ 1.4 post_install() 1.5 { 1.6 echo -n "Checking for .tmux.conf..." 1.7 - if [ ! -f /home/tux/.tmux.conf ] || $(! grep -q "tmux-mem-cpu-load" /home/tux/.tmux.conf); then 1.8 - cat >> /home/tux/.tmux.conf << EOT 1.9 + for i in $(ls $1/home); do 1.10 + grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue 1.11 + cat >> /home/$i/.tmux.conf << EOT 1.12 # tmux-mem-cpu-load 1.13 set -g status-interval 2 1.14 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" 1.15 EOT 1.16 - fi 1.17 - chown tux:users /home/tux/.tmux.conf 1.18 + 1.19 + chroot $1/ chown $i.users /home/$i/.tmux.conf 1.20 + done 1.21 status 1.22 } 1.23 -