File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ Copy the resulting binary from the target folder to `/usr/bin/bloop-box`.
49
49
50
50
#### User setup
51
51
52
- Apart from the shared data, you'll need to set up the bloop-box user and its run directory:
52
+ Apart from the shared data, you'll need to set up the bloop-box user and its lib directory:
53
53
54
54
``` bash
55
55
adduser --system --home /nonexistent --gecos " bloop-box" \
56
56
--no-create-home --disabled-password \
57
57
--quiet bloop-box
58
58
usermod -a -G gpio,spi,audio bloop-box
59
- mkdir -p /run /bloop-box
60
- chown bloop-box:bloop-box /run /bloop-box
59
+ mkdir -p /var/lib /bloop-box
60
+ chown bloop-box:nogroup /var/lib /bloop-box
61
61
```
62
62
63
63
On a development system, you might want to give the bloop-box user a login shell and a home directory.
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ if [ "$1" = "configure" ]; then
11
11
12
12
usermod -a -G gpio,spi,audio bloop-box
13
13
14
- if [ ! -d /run /bloop-box ]; then
15
- mkdir /run /bloop-box
16
- chown bloop-box:nogroup /run /bloop-box
14
+ if [ ! -d /var/lib /bloop-box ]; then
15
+ mkdir /var/lib /bloop-box
16
+ chown bloop-box:nogroup /var/lib /bloop-box
17
17
fi
18
18
fi
19
19
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ purge = "$1" ]; then
7
7
else
8
8
echo >&2 " not removing bloop-box system account because deluser command was not found"
9
9
fi
10
- rm -rf /run /bloop-box
10
+ rm -rf /var/lib /bloop-box
11
11
fi
12
12
13
13
# DEBHELPER#
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async fn main() -> Result<()> {
25
25
Builder :: from_env ( Env :: default ( ) . default_filter_or ( "debug" ) ) . init ( ) ;
26
26
27
27
let share_dir = Path :: new ( "/usr/share/bloop-box" ) ;
28
- let data_dir = Path :: new ( "/run /bloop-box" ) ;
28
+ let data_dir = Path :: new ( "/var/lib /bloop-box" ) ;
29
29
let cache_dir = Path :: new ( & data_dir) . join ( "cache" ) ;
30
30
31
31
if !cache_dir. is_dir ( ) {
You can’t perform that action at this time.
0 commit comments