From a9abe393cc8972a3e24da1a23755db067e245dd8 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Mon, 27 May 2019 19:19:35 +0200 Subject: sndio: Fix installation when user or run dir exist --- audio-drivers/sndio/HISTORY | 3 +++ audio-drivers/sndio/INSTALL | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'audio-drivers') diff --git a/audio-drivers/sndio/HISTORY b/audio-drivers/sndio/HISTORY index 7dc5716762..2e4f1b9976 100644 --- a/audio-drivers/sndio/HISTORY +++ b/audio-drivers/sndio/HISTORY @@ -1,3 +1,6 @@ +2019-05-27 Ismael Luceno + * INSTALL: Fixed installation when the user and run dir exist + 2019-05-27 Treeve Jelbert * DETAILS: version 1.5.0 diff --git a/audio-drivers/sndio/INSTALL b/audio-drivers/sndio/INSTALL index 835eed7b55..e610c5af61 100755 --- a/audio-drivers/sndio/INSTALL +++ b/audio-drivers/sndio/INSTALL @@ -1,5 +1,5 @@ default_install && -mkdir /var/run/sndiod && -if ! exists_account sndiod; then +mkdir -p /var/run/sndiod && +if ! grep -q "^sndiod:" "$INSTALL_ROOT"/etc/passwd; then useradd -r -g audio -s /sbin/nologin -d /var/run/sndiod sndiod fi -- cgit v1.2.3