slish view tools/signup.sh @ rev 13

Tiny edits
author Paul Issott <paul@slitaz.org>
date Sat Feb 01 17:29:57 2014 +0000 (2014-02-01)
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