diff --git a/misc/systemd/ipfs-hardened.service b/misc/systemd/ipfs-hardened.service index 261b82e2a06..71383870381 100644 --- a/misc/systemd/ipfs-hardened.service +++ b/misc/systemd/ipfs-hardened.service @@ -69,7 +69,7 @@ Type=notify User=ipfs Group=ipfs StateDirectory=ipfs -Environment=IPFS_PATH="${HOME}" +Environment=IPFS_PATH="%S" ExecStart=/usr/bin/ipfs daemon --init --migrate Restart=on-failure KillSignal=SIGINT diff --git a/misc/systemd/ipfs.service b/misc/systemd/ipfs.service index 0051dffdd63..c24a4c05977 100644 --- a/misc/systemd/ipfs.service +++ b/misc/systemd/ipfs.service @@ -40,7 +40,7 @@ Type=notify User=ipfs Group=ipfs StateDirectory=ipfs -Environment=IPFS_PATH="${HOME}" +Environment=IPFS_PATH="%S" ExecStart=/usr/bin/ipfs daemon --init --migrate Restart=on-failure KillSignal=SIGINT