slish view tools/signup.sh @ rev 12

Add 2 small scripts to handle quota and signup
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jan 28 21:38:25 2014 +0100 (2014-01-28)
parents
children
line source
1 #!/bin/sh
2 #
3 # Monitor the signup-queue directory and auto adduser
4 #
5 . /lib/libtaz.sh
7 [ "$root" ] || root="/home/slish/chroot"
8 cache="$(dirname $root)/cache"
9 queue="${cache}/signup-queue"
11 inotifywait -m -e create ${queue} 2>/dev/null | while read line
12 do
13 sleep 4 && slish adduser --queued
14 done