fix: use the "state" directory in systemd unit files
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:
Steven Allen 2022-09-12 18:00:26 -07:00 committed by gammazero
parent cf096c2a85
commit 7f6bb83cfe
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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