Unverified Commit e93c77cd authored by Riccardo Spagni's avatar Riccardo Spagni
Browse files

clear out duplicate entries before update, various minor fixes and updates

parent aeb9ecd0
......@@ -97,6 +97,8 @@ try
$zoneversion = 3;
}
echo $zoneversion."...";
// Grab the zone records *from the version we're editing* (we don't care about the currently active zone version, we're going to switch away from it)
$zonerecords = $record_api->list($apikey, $zoneid, $zoneversion);
......@@ -109,6 +111,8 @@ try
}
}
array_unique($peerlist);
// Take our new peer list and add them as A records
foreach ($peerlist as $peerip)
{
......@@ -130,4 +134,4 @@ catch (Exception $e)
// In the event we encounter an error (eg. Gandi is unavailable, seeds are unavailable) do nothing, we're going to retry in 5 minutes
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
\ No newline at end of file
?>
......@@ -30,6 +30,6 @@
while true
do
php dns_poll.php &
php ~/xmr-seeder/dns_poll.php &
sleep 300
done
......@@ -31,5 +31,5 @@
if ! pgrep dns_poll.sh > /dev/null
then
screen -S xmr_seeder -d -m ~/xmr_seeder/dns_poll.sh
screen -S xmr-seeder -d -m ~/xmr-seeder/dns_poll.sh
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment