From 21be853424479dce38da67f90a6dc07a8fe3214c Mon Sep 17 00:00:00 2001 From: zamentur Date: Tue, 29 Sep 2015 00:05:29 +0200 Subject: [PATCH] [fix] Random avahi adduser not working correctly --- install_yunohostv2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 6d74f1e..98a802a 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -239,7 +239,7 @@ workaround_avahi_installation() { # Get a random unused uid between 500 and 999 (system-user) local avahi_id=$((500 + RANDOM % 500)) - while ! cut -d ':' -f 3 /etc/passwd | grep -q $avahi_id ; + while cut -d ':' -f 3 /etc/passwd | grep -q $avahi_id ; do avahi_id=$((500 + RANDOM % 500)) done