This commit is contained in:
AB
2020-04-26 16:19:14 +03:00
parent da97520595
commit 905551c168
2 changed files with 20 additions and 10 deletions

13
.github/workflows/mus-fuse.install vendored Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
post_install() {
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"
}

17
debian/preinst vendored
View File

@ -1,13 +1,10 @@
#!/bin/sh
#!/bin/bash
post_install() {
if systemctl | grep -Fq 'mus-fuse'; then
sudo systemctl stop mus-fuse.service
fi
if systemctl | grep -Fq 'mus-fuse'; then
sudo systemctl stop mus-fuse.service
fi
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
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"
}