From ee05e72ed109b2afbcaa5b99fb84cdd614d417d7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Sep 2016 23:18:01 +0100 Subject: [PATCH] Permissions on stat --- src/zeronetavahi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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