summaryrefslogtreecommitdiffstats
path: root/audio-drivers
diff options
context:
space:
mode:
authorIsmael Luceno2019-05-27 19:19:35 +0200
committerIsmael Luceno2019-05-27 19:19:35 +0200
commita9abe393cc8972a3e24da1a23755db067e245dd8 (patch)
treec8368d1cb4b0f92b9595bf11e448c1973e0e4e45 /audio-drivers
parent0c81a92812757917b32eedd1dcc20631028fbf65 (diff)
sndio: Fix installation when user or run dir exist
Diffstat (limited to 'audio-drivers')
-rw-r--r--audio-drivers/sndio/HISTORY3
-rwxr-xr-xaudio-drivers/sndio/INSTALL4
2 files changed, 5 insertions, 2 deletions
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 <ismael@sourcemage.org>
+ * INSTALL: Fixed installation when the user and run dir exist
+
2019-05-27 Treeve Jelbert <treeve@sourcemage.org>
* 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