Skip to content
Snippets Groups Projects
Commit 7f6bb83c authored by Steven Allen's avatar Steven Allen Committed by gammazero
Browse files

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: https://github.com/ipfs/kubo/commit/b47ecd0cba85905f18b85de9dd771008adf60fd0#commitcomment-83565661
parent cf096c2a
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ Type=notify ...@@ -69,7 +69,7 @@ Type=notify
User=ipfs User=ipfs
Group=ipfs Group=ipfs
StateDirectory=ipfs StateDirectory=ipfs
Environment=IPFS_PATH="${HOME}" Environment=IPFS_PATH="%S"
ExecStart=/usr/local/bin/ipfs daemon --init --migrate ExecStart=/usr/local/bin/ipfs daemon --init --migrate
Restart=on-failure Restart=on-failure
KillSignal=SIGINT KillSignal=SIGINT
......
...@@ -40,7 +40,7 @@ Type=notify ...@@ -40,7 +40,7 @@ Type=notify
User=ipfs User=ipfs
Group=ipfs Group=ipfs
StateDirectory=ipfs StateDirectory=ipfs
Environment=IPFS_PATH="${HOME}" Environment=IPFS_PATH="%S"
ExecStart=/usr/local/bin/ipfs daemon --init --migrate ExecStart=/usr/local/bin/ipfs daemon --init --migrate
Restart=on-failure Restart=on-failure
KillSignal=SIGINT KillSignal=SIGINT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment