soundfx-bot/debian/postinst

14 lines
236 B
Plaintext
Raw Permalink Normal View History

2023-03-29 16:57:19 +00:00
#!/bin/bash
set -e
2023-03-29 16:57:19 +00:00
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
2023-03-29 16:57:19 +00:00
chown soundfx /etc/soundfx-rs/config.env
#DEBHELPER#