Adding functional usage of client self updater #10

- Added update command to the server
- Server can request nodes update
- Nodes have an 'endpoint' for updating
- Fixes to the install script
This commit is contained in:
Logan Cusano
2024-03-03 20:49:29 -05:00
parent 976c44838e
commit 956dc89107
6 changed files with 72 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ prompt_nearby_system() {
fi
echo "\"$system_name\": {
\"frequencies\": [$(echo "$frequencies" | sed 's/,/","/g')],
\"frequencies\": [\"$(echo "$frequencies" | sed 's/,/","/g')\"],
\"mode\": \"$mode\",
\"trunkFile\": \"$trunk_file\",
\"whitelistFile\": \"$whitelist_file\"
@@ -113,7 +113,7 @@ systems_json="${systems_json%,}" # Remove trailing comma
systems_json+="}"
# Append the created systems to the presets file
mkdir ./config
mkdir -p ./config
echo "$systems_json" >> "./config/radioPresets.json"
echo "Systems added to radioPresets.json."