@aymnart/sysup
v1.0.0
Published
Global system maintenance updater CLI
Readme
updater
Terminal UI for running a configured set of Linux update tasks.
Install
npm install --global updaterUsage
sudo updaterThe first run creates ~/.config/updater/config.json for the invoking sudo user.
Tasks can run as either root or the original user, and task applicability is
checked with structured executable/path checks instead of shell commands.
Config
Each task has a name, optional runAs value, optional checks, and one or more
commands.
{
"tasks": [
{
"name": "APT Packages",
"runAs": "root",
"checks": [{"cmd": "apt-get"}],
"commands": [
{
"cmd": "apt-get",
"args": ["update"],
"title": "Updating package lists"
},
{
"cmd": "apt-get",
"args": ["upgrade", "-y"],
"title": "Upgrading packages"
}
]
}
]
}runAs defaults to root. Use runAs: "user" for commands that should use the
original sudo user’s home directory and UID/GID, such as editor extensions or
per-user package managers.
