mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[fix] Random avahi adduser not working correctly
This commit is contained in:
parent
ed1de840f8
commit
21be853424
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue