Permissions on stat
This commit is contained in:
parent
09ef52055b
commit
ee05e72ed1
|
@ -106,7 +106,8 @@ function ipfs_publish {
|
||||||
|
|
||||||
if [ "$OLD_STAT" != "$NEW_STAT" ]; then
|
if [ "$OLD_STAT" != "$NEW_STAT" ]; then
|
||||||
su -c "echo \$($IPFS_COMMAND add -rq /home/$MY_USERNAME/Public | tail -n 1) > $IPFS_PUBLIC" - $MY_USERNAME
|
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
|
fi
|
||||||
|
|
||||||
if [ -f $IPFS_PUBLIC ]; then
|
if [ -f $IPFS_PUBLIC ]; then
|
||||||
|
|
Loading…
Reference in New Issue