mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
fix: use the "state" directory in systemd unit files
Some checks failed
Spell Check / spellcheck (push) Has been cancelled
Some checks failed
Spell Check / spellcheck (push) Has been cancelled
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: b47ecd0cba (commitcomment-83565661)
This commit is contained in:
parent
cf096c2a85
commit
7f6bb83cfe
@ -69,7 +69,7 @@ Type=notify
|
||||
User=ipfs
|
||||
Group=ipfs
|
||||
StateDirectory=ipfs
|
||||
Environment=IPFS_PATH="${HOME}"
|
||||
Environment=IPFS_PATH="%S"
|
||||
ExecStart=/usr/local/bin/ipfs daemon --init --migrate
|
||||
Restart=on-failure
|
||||
KillSignal=SIGINT
|
||||
|
||||
@ -40,7 +40,7 @@ Type=notify
|
||||
User=ipfs
|
||||
Group=ipfs
|
||||
StateDirectory=ipfs
|
||||
Environment=IPFS_PATH="${HOME}"
|
||||
Environment=IPFS_PATH="%S"
|
||||
ExecStart=/usr/local/bin/ipfs daemon --init --migrate
|
||||
Restart=on-failure
|
||||
KillSignal=SIGINT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user