|
|
|
|
757
|
su -c "systemctl --user start ipfs" - $MY_USERNAME
|
757
|
su -c "systemctl --user start ipfs" - $MY_USERNAME
|
758
|
|
758
|
|
759
|
if [ -d /home/$MY_USERNAME/Public ]; then
|
759
|
if [ -d /home/$MY_USERNAME/Public ]; then
|
|
|
760
|
+ rm /home/$MY_USERNAME/Desktop/Public
|
760
|
rm -rf /home/$MY_USERNAME/Public
|
761
|
rm -rf /home/$MY_USERNAME/Public
|
761
|
fi
|
762
|
fi
|
762
|
|
763
|
|
|
|
|
|
803
|
mkdir /home/$MY_USERNAME/Public
|
804
|
mkdir /home/$MY_USERNAME/Public
|
804
|
echo $'Files within this directory will be publicly visible on the network' > /home/$MY_USERNAME/Public/README.txt
|
805
|
echo $'Files within this directory will be publicly visible on the network' > /home/$MY_USERNAME/Public/README.txt
|
805
|
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Public
|
806
|
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Public
|
|
|
807
|
+ ln -s /home/$MY_USERNAME/Public /home/$MY_USERNAME/Desktop/Public
|
806
|
su -c "echo \$($IPFS_COMMAND add -rq /home/$MY_USERNAME/Public | tail -n 1) > $IPFS_PUBLIC" - $MY_USERNAME
|
808
|
su -c "echo \$($IPFS_COMMAND add -rq /home/$MY_USERNAME/Public | tail -n 1) > $IPFS_PUBLIC" - $MY_USERNAME
|
807
|
if [ ! -f $IPFS_PUBLIC ]; then
|
809
|
if [ ! -f $IPFS_PUBLIC ]; then
|
808
|
echo $'Unable to create public IPFS directory' >> $INSTALL_LOG
|
810
|
echo $'Unable to create public IPFS directory' >> $INSTALL_LOG
|