This commit is contained in:
AB
2020-04-26 16:15:58 +03:00
parent d13a829a22
commit da97520595
3 changed files with 20 additions and 17 deletions

17
debian/preinst vendored
View File

@ -1,10 +1,13 @@
#!/bin/bash
#!/bin/sh
if systemctl | grep -Fq 'mus-fuse'; then
sudo systemctl stop mus-fuse.service
fi
post_install() {
adduser --quiet --system --group --no-create-home --home /run/mus-fuse mus-fuse
mkdir -p /srv/mus-fuse
chown mus-fuse:mus-fuse /srv/mus-fuse
if systemctl | grep -Fq 'mus-fuse'; then
sudo systemctl stop mus-fuse.service
fi
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"
}