summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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