mirror of
https://github.com/house-of-vanity/mus-fuse.git
synced 2025-07-06 05:14:06 +00:00
Fix CI
This commit is contained in:
13
.github/workflows/mus-fuse.install
vendored
Normal file
13
.github/workflows/mus-fuse.install
vendored
Normal 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
17
debian/preinst
vendored
@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user