|
@@ -10383,12 +10383,12 @@ function install_ipfs {
|
10383
|
10383
|
echo '' >> /etc/systemd/system/ipfs.service
|
10384
|
10384
|
echo '[Service]' >> /etc/systemd/system/ipfs.service
|
10385
|
10385
|
echo 'Type=simple' >> /etc/systemd/system/ipfs.service
|
10386
|
|
- echo 'User=git' >> /etc/systemd/system/ipfs.service
|
10387
|
|
- echo 'Group=git' >> /etc/systemd/system/ipfs.service
|
10388
|
|
- echo 'WorkingDirectory=/home/git' >> /etc/systemd/system/ipfs.service
|
|
10386
|
+ echo "User=$MY_USERNAME" >> /etc/systemd/system/ipfs.service
|
|
10387
|
+ echo "Group=$MY_USERNAME" >> /etc/systemd/system/ipfs.service
|
|
10388
|
+ echo "WorkingDirectory=/home/$MY_USERNAME" >> /etc/systemd/system/ipfs.service
|
10389
|
10389
|
echo "ExecStart=$IPFS_PATH/ipfs daemon --mount" >> /etc/systemd/system/ipfs.service
|
10390
|
10390
|
echo 'Restart=on-failure' >> /etc/systemd/system/ipfs.service
|
10391
|
|
- echo 'Environment="USER=git" "HOME=/home/git" "GOPATH=/home/git/go"' >> /etc/systemd/system/ipfs.service
|
|
10391
|
+ echo "Environment=\"USER=$MY_USERNAME\" \"HOME=/home/$MY_USERNAME\" \"GOPATH=/home/git/go\"" >> /etc/systemd/system/ipfs.service
|
10392
|
10392
|
echo '' >> /etc/systemd/system/ipfs.service
|
10393
|
10393
|
echo '[Install]' >> /etc/systemd/system/ipfs.service
|
10394
|
10394
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ipfs.service
|