Refactor: rename lanx-update to update-manager and clean up repo

This commit is contained in:
Ed Nielsen 2026-03-18 13:26:46 +01:00
parent 7e5662ced4
commit c82a8db207
4 changed files with 16 additions and 11 deletions

View file

@ -12,10 +12,10 @@ Lightweight SSH-based update manager for Linux systems.
## Usage
./lanx-update.sh check
./lanx-update.sh update
./lanx-update.sh autoremove
./lanx-update.sh full
./update-manager.sh check
./update-manager.sh update
./update-manager.sh autoremove
./update-manager.sh full
## Hosts file format
@ -27,5 +27,5 @@ server1|192.168.1.10|user
## Config
HOSTS_FILE="/opt/lanx/hosts.conf"
HOSTS_FILE="${HOSTS_FILE:-/opt/update-manager/hosts.conf}"
NTFY_URL=""

View file

@ -1,3 +0,0 @@
# name|ip|ssh_user
server1|192.168.1.10|user
server2|192.168.1.20|user

View file

@ -1,2 +0,0 @@
HOSTS_FILE="/opt/lanx/hosts.conf"
NTFY_URL=""

View file

@ -1,6 +1,16 @@
#!/usr/bin/env bash
HOSTS_FILE="/opt/lanx/hosts.conf"
#!/usr/bin/env bash
CONFIG_FILE="/etc/update-manager.conf"
if [[ -f "$CONFIG_FILE" ]]; then
# shellcheck disable=SC1090
source "$CONFIG_FILE"
fi
HOSTS_FILE="${HOSTS_FILE:-./hosts.conf}"
NTFY_URL="${NTFY_URL:-}"
check_host() {
local name="$1"