Files
mus-fuse/debian/preinst

14 lines
345 B
Plaintext
Raw Normal View History

2020-04-26 16:15:58 +03:00
#!/bin/sh
2020-04-26 16:15:58 +03:00
post_install() {
2020-04-26 16:15:58 +03:00
if systemctl | grep -Fq 'mus-fuse'; then
sudo systemctl stop mus-fuse.service
fi
2020-04-26 16:15:58 +03:00
sudo useradd --system --user-group --no-create-home --home-dir /run/mus-fuse mus-fuse
mkdir -p /srv/mus-fuse
chown mus-fuse:mus-fuse /srv/mus-fuse
echo ":: You need to uncomment 'user_allow_other' in /etc/fuse.conf"
}