Skip to content

Commit 9fe0a30

Browse files
committed
fix: use the "state" directory in systemd unit files
As pointed out by @MrCowKing in, "${HOME}" isn't expanded. We use the state directory as that's guaranteed to exist (and, in the default configuration, will match the "HOME" directory of the ipfs user). See: b47ecd0#commitcomment-83565661
1 parent 007295d commit 9fe0a30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

misc/systemd/ipfs-hardened.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Type=notify
6969
User=ipfs
7070
Group=ipfs
7171
StateDirectory=ipfs
72-
Environment=IPFS_PATH="${HOME}"
72+
Environment=IPFS_PATH="%S"
7373
ExecStart=/usr/bin/ipfs daemon --init --migrate
7474
Restart=on-failure
7575
KillSignal=SIGINT

misc/systemd/ipfs.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Type=notify
4040
User=ipfs
4141
Group=ipfs
4242
StateDirectory=ipfs
43-
Environment=IPFS_PATH="${HOME}"
43+
Environment=IPFS_PATH="%S"
4444
ExecStart=/usr/bin/ipfs daemon --init --migrate
4545
Restart=on-failure
4646
KillSignal=SIGINT

0 commit comments

Comments
 (0)