From 67aefea0654a3314c680b149c4be5a273fde8aff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 29 Sep 2015 20:00:32 +0100 Subject: [PATCH] run ipfs daemon with the user's account --- src/freedombone | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone b/src/freedombone index 5b0932fa..f9934495 100755 --- a/src/freedombone +++ b/src/freedombone @@ -10383,12 +10383,12 @@ function install_ipfs { echo '' >> /etc/systemd/system/ipfs.service echo '[Service]' >> /etc/systemd/system/ipfs.service echo 'Type=simple' >> /etc/systemd/system/ipfs.service - echo 'User=git' >> /etc/systemd/system/ipfs.service - echo 'Group=git' >> /etc/systemd/system/ipfs.service - echo 'WorkingDirectory=/home/git' >> /etc/systemd/system/ipfs.service + echo "User=$MY_USERNAME" >> /etc/systemd/system/ipfs.service + echo "Group=$MY_USERNAME" >> /etc/systemd/system/ipfs.service + echo "WorkingDirectory=/home/$MY_USERNAME" >> /etc/systemd/system/ipfs.service echo "ExecStart=$IPFS_PATH/ipfs daemon --mount" >> /etc/systemd/system/ipfs.service echo 'Restart=on-failure' >> /etc/systemd/system/ipfs.service - echo 'Environment="USER=git" "HOME=/home/git" "GOPATH=/home/git/go"' >> /etc/systemd/system/ipfs.service + echo "Environment=\"USER=$MY_USERNAME\" \"HOME=/home/$MY_USERNAME\" \"GOPATH=/home/git/go\"" >> /etc/systemd/system/ipfs.service echo '' >> /etc/systemd/system/ipfs.service echo '[Install]' >> /etc/systemd/system/ipfs.service echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ipfs.service