remove empty directory from ~/.zen/ipfs_swarm/.$ipfsnodeid/ FRIEND
This commit is contained in:
parent
e4a8ac945e
commit
36e577dcc7
|
@ -112,12 +112,12 @@ do
|
||||||
[[ "$XID" != "" ]] && ipfs bootstrap rm "/ipfs/$ipfsnodeid" && ipfs bootstrap add "$peerline" || ipfs bootstrap rm "$peerline"
|
[[ "$XID" != "" ]] && ipfs bootstrap rm "/ipfs/$ipfsnodeid" && ipfs bootstrap add "$peerline" || ipfs bootstrap rm "$peerline"
|
||||||
echo "Removing 30 days older data from ~/.zen/ipfs_swarm/.$ipfsnodeid/"
|
echo "Removing 30 days older data from ~/.zen/ipfs_swarm/.$ipfsnodeid/"
|
||||||
find /home/$YOU/.zen/ipfs_swarm/.$ipfsnodeid/ -type f -mtime +30 -exec rm '{}' \;
|
find /home/$YOU/.zen/ipfs_swarm/.$ipfsnodeid/ -type f -mtime +30 -exec rm '{}' \;
|
||||||
find /home/$YOU/.zen/ipfs_swarm/.$ipfsnodeid/ -type d -mtime +30 -exec rmdir '{}' \;
|
find /home/$YOU/.zen/ipfs_swarm/.$ipfsnodeid/ -empty -type d -delete;
|
||||||
echo "OK Friend REFRESH /ipns/$ipfsnodeid INTO ~/.zen/ipfs_swarm/"
|
echo "OK Friend REFRESH /ipns/$ipfsnodeid INTO ~/.zen/ipfs_swarm/"
|
||||||
ipfs --timeout=60s get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$ipfsnodeid
|
ipfs --timeout=60s get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$ipfsnodeid
|
||||||
if [ $? != 0 ];
|
if [ $? != 0 ];
|
||||||
then
|
then
|
||||||
echo "TIMEOUT REACHED ___ REMOVE $ipfsnodeid FROM ~/.zen/A_my_swarm.txt";
|
echo "TIMEOUT REACHED ___ SHOULD I REMOVE $ipfsnodeid FROM ~/.zen/A_my_swarm.txt";
|
||||||
else
|
else
|
||||||
################################################################
|
################################################################
|
||||||
## REFRESH stargates keys from my friend
|
## REFRESH stargates keys from my friend
|
||||||
|
@ -241,6 +241,8 @@ done
|
||||||
# Remove old database
|
# Remove old database
|
||||||
# rm ~/.kodi/userdata/addon_data/plugin.video.vstream/astroport_cache.db
|
# rm ~/.kodi/userdata/addon_data/plugin.video.vstream/astroport_cache.db
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
## RENEW "BALISE" LIST OF FRIENDS index.html
|
||||||
########################################################################
|
########################################################################
|
||||||
# REFRESH tiddlywiki WALL OF FRIENDS /ipns/${IPFSNODEID}/.${IPFSNODEID}/FRIENDS/index.html
|
# REFRESH tiddlywiki WALL OF FRIENDS /ipns/${IPFSNODEID}/.${IPFSNODEID}/FRIENDS/index.html
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
Loading…
Reference in New Issue