slish diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/signup.sh Sat Feb 01 17:29:57 2014 +0000 1.3 @@ -0,0 +1,14 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Monitor the signup-queue directory and auto adduser 1.7 +# 1.8 +. /lib/libtaz.sh 1.9 + 1.10 +[ "$root" ] || root="/home/slish/chroot" 1.11 +cache="$(dirname $root)/cache" 1.12 +queue="${cache}/signup-queue" 1.13 + 1.14 +inotifywait -m -e create ${queue} 2>/dev/null | while read line 1.15 +do 1.16 + sleep 4 && slish adduser --queued 1.17 +done