Skip to content

Commit

Permalink
systemd: specify repo path, to avoid unnecessary subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenKelevra committed Jun 15, 2020
1 parent 0ef5ea4 commit b47ecd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions misc/systemd/ipfs-hardened.service
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Type=notify
User=ipfs
Group=ipfs
StateDirectory=ipfs
Environment=IPFS_PATH="${HOME}"
ExecStart=/usr/bin/ipfs daemon --init --migrate
Restart=on-failure
KillSignal=SIGINT
Expand Down
1 change: 1 addition & 0 deletions misc/systemd/ipfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Type=notify
User=ipfs
Group=ipfs
StateDirectory=ipfs
Environment=IPFS_PATH="${HOME}"
ExecStart=/usr/bin/ipfs daemon --init --migrate
Restart=on-failure
KillSignal=SIGINT
Expand Down

1 comment on commit b47ecd0

@MrCowKing
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Systemd does not perform variable expansion inside "Environment=". All this does is set the variable "IPFS_PATH" to the literal value "${HOME}"

Please sign in to comment.