Add user when installing

This commit is contained in:
jude committed 2023-03-29 18:16:04 +01:00
1 parent a9a08e656f
commit cc55b3e1d1
3 files changed
+18 -1

No files matched your search

+6 -1
View File
@@ -1,8 +1,13 @@
#!/bin/sh
#!/bin/bash
set -e
id -u soundfx &>/dev/null || useradd -r -M soundfx
if [ ! -f /etc/soundfx-rs/config.env ]; then
cp /etc/soundfx-rs/default.env /etc/soundfx-rs/config.env
fi
chown soundfx /etc/soundfx-rs/config.env
#DEBHELPER#