remove empty directories from swarm
This commit is contained in:
parent
dd33937301
commit
4775e2afb2
|
@ -47,7 +47,7 @@ touch /tmp/treated.ipfs.swarm
|
||||||
echo "******************************************************************"
|
echo "******************************************************************"
|
||||||
echo "REFRESHING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm"
|
echo "REFRESHING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm"
|
||||||
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;
|
||||||
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
|
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
|
||||||
########################################################################
|
########################################################################
|
||||||
count=1
|
count=1
|
||||||
|
@ -249,13 +249,13 @@ echo "******************************************************************"
|
||||||
echo "### PUBLISH tiddlywiki WALL OF FRIENDS ###"
|
echo "### PUBLISH tiddlywiki WALL OF FRIENDS ###"
|
||||||
echo "<html>
|
echo "<html>
|
||||||
<head>
|
<head>
|
||||||
<title>$zuid $updated FRIENDS (${IPFSNODEID})</title>
|
<title> - $zuid Friends - ${IPFSNODEID}</title>
|
||||||
<link rel='stylesheet' href='https://tube.copylaradio.com/crowdbunker.css' type='text/css' />
|
<link rel='stylesheet' href='https://tube.copylaradio.com/crowdbunker.css' type='text/css' />
|
||||||
<link rel='icon' type='image/png' href='https://tube.copylaradio.com/astrocrowdbunker.png' />
|
<link rel='icon' type='image/png' href='https://tube.copylaradio.com/astrocrowdbunker.png' />
|
||||||
</head>
|
</head>
|
||||||
<body><header>
|
<body><header>
|
||||||
<h1>
|
<h1>
|
||||||
<a href='https://astroport.com'><span>Astroport</span> × <span>WIKI des Amis de $zuid</span></a>
|
<a href='https://astroport.com'><span>Astroport</span> × <span>WIKI des Amis de $zuid $updated</span></a>
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue