diff --git a/src/zeronetavahi b/src/zeronetavahi index ef92ddbb..5d2bb9b4 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -106,7 +106,8 @@ function ipfs_publish { if [ "$OLD_STAT" != "$NEW_STAT" ]; then su -c "echo \$($IPFS_COMMAND add -rq /home/$MY_USERNAME/Public | tail -n 1) > $IPFS_PUBLIC" - $MY_USERNAME - echo $NEW_STAT > $OLD_STAT_FILE + echo "$NEW_STAT" > $OLD_STAT_FILE + chown $MY_USERNAME:$MY_USERNAME $OLD_STAT_FILE fi if [ -f $IPFS_PUBLIC ]; then