Refactor: rename lanx-update to update-manager and clean up repo
This commit is contained in:
parent
7e5662ced4
commit
c82a8db207
4 changed files with 16 additions and 11 deletions
10
README.md
10
README.md
|
|
@ -12,10 +12,10 @@ Lightweight SSH-based update manager for Linux systems.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
./lanx-update.sh check
|
./update-manager.sh check
|
||||||
./lanx-update.sh update
|
./update-manager.sh update
|
||||||
./lanx-update.sh autoremove
|
./update-manager.sh autoremove
|
||||||
./lanx-update.sh full
|
./update-manager.sh full
|
||||||
|
|
||||||
## Hosts file format
|
## Hosts file format
|
||||||
|
|
||||||
|
|
@ -27,5 +27,5 @@ server1|192.168.1.10|user
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
|
||||||
HOSTS_FILE="/opt/lanx/hosts.conf"
|
HOSTS_FILE="${HOSTS_FILE:-/opt/update-manager/hosts.conf}"
|
||||||
NTFY_URL=""
|
NTFY_URL=""
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# name|ip|ssh_user
|
|
||||||
server1|192.168.1.10|user
|
|
||||||
server2|192.168.1.20|user
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
HOSTS_FILE="/opt/lanx/hosts.conf"
|
|
||||||
NTFY_URL=""
|
|
||||||
|
|
@ -1,6 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/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() {
|
check_host() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue