run ipfs daemon with the user's account
This commit is contained in:
parent
6b3ffcc050
commit
67aefea065
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue