Permissions on stat

This commit is contained in:
Bob Mottram 2016-09-08 23:18:01 +01:00
parent 09ef52055b
commit ee05e72ed1
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 2 additions and 1 deletions

View File

@ -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