readme updated and come comments in the code
This commit is contained in:
parent
5f7cceafb3
commit
5164ab6e8f
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
# Minetest
|
||||
|
||||
Minetest related code
|
||||
My Dev branch for minetest server related code. Currently it contains a mod updater for a minetest server. This is a work in progress, use at your own risk.
|
||||
|
||||
# Notes
|
||||
|
||||
Version checking and comparing works. index.json is the current index of all avaialble minetest mods as pulled from content.minecraft.net. index2.json should be
|
||||
a current copy from the aforementioned site using the API. index.json can be kept as is after your first run, only index2.json really needs to change for the version
|
||||
detection to work. I suggest setting up a cron job to refresh index2.jon and rotate out index2.json to index.json if you want the script out put to properly reflect the old version numbers. I'll proably include a small bash script you can run to handle that later.
|
|
@ -11,7 +11,7 @@ use Storable;
|
|||
|
||||
$updfile = "index.json"; # I could use JSON here, but it might be easier to abuse jq
|
||||
$updlsturl = "https://content.minetest.net/api/packages/"; # give use a json file of everything available
|
||||
$modpath = "/home/kake26/.var/app/net.minetest.Minetest/.minetest/mods/";
|
||||
$modpath = "/home/kake26/.var/app/net.minetest.Minetest/.minetest/mods/"; # where your server stores its mods
|
||||
|
||||
sub chk_update () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue