@astrofoundry/pi-astro 0.26.3 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/skills/edge/SKILL.md
CHANGED
|
@@ -23,7 +23,7 @@ Fetches `https://auth.37pla.net/.well-known/openid-configuration` through the VP
|
|
|
23
23
|
| `bouncer` | bouncer unit status and the nftables set of blocked addresses |
|
|
24
24
|
| `updates` | upgradable packages from the local apt index (not refreshed, so it can lag the mirror) and the packages that need a reboot |
|
|
25
25
|
| `package <name>` | refreshes the apt index, then the installed version (`dpkg-query`) and the candidate with its origin (`apt-cache policy`) |
|
|
26
|
-
| `changelog <name>` | first 80 lines of the
|
|
26
|
+
| `changelog <name>` | first 80 lines of the Debian changelog: the installed package's own copy from `/usr/share/doc`, or the candidate's from the Debian servers when nothing is installed; each security upload lists the CVEs it fixes, so this is the proof that a version fixes a CVE. The servers answer 404 for many fresh security uploads; the installed copy does not have that problem |
|
|
27
27
|
| `auto-upgrades` | the apt timers with their next run, the last three days of `apt-daily` and `apt-daily-upgrade` journal, the unattended-upgrades log tail, and the last dpkg upgrades |
|
|
28
28
|
| `deploy-nginx` | install the tracked `nginx.conf`: `nginx -t` on the staged file, install, `nginx -t`, reload |
|
|
29
29
|
| `reboot --confirm` | `systemctl reboot` |
|
package/specialists/edge/run.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const VPS_COMMANDS: Readonly<Record<string, { args: number; help: string;
|
|
|
62
62
|
bouncer: { args: 0, help: "crowdsec-firewall-bouncer status and the nftables block set" },
|
|
63
63
|
updates: { args: 0, help: "upgradable packages (local index, not refreshed) and the packages that need a reboot" },
|
|
64
64
|
package: { args: 1, help: "package <name> refresh the apt index, then installed and candidate versions of one package" },
|
|
65
|
-
changelog: { args: 1, help: "changelog <name> Debian changelog
|
|
65
|
+
changelog: { args: 1, help: "changelog <name> Debian changelog, first 80 lines: the installed package's own copy, else the candidate's from the Debian servers; it names the CVEs each upload fixes" },
|
|
66
66
|
"auto-upgrades": { args: 0, help: "unattended-upgrades: apt timers, last daily runs, recent log, dpkg upgrades" },
|
|
67
67
|
"deploy-nginx": { args: 0, help: "install the tracked nginx.conf from the pushed homelab checkout (nginx -t, install, reload)", stdin: true },
|
|
68
68
|
reboot: { args: 0, help: "systemctl reboot (needs --confirm)" },
|
|
@@ -45,7 +45,13 @@ case "$name" in
|
|
|
45
45
|
changelog)
|
|
46
46
|
pkg="$rest"
|
|
47
47
|
printf '%s' "$pkg" | grep -Eq '^[a-z0-9][a-z0-9+.-]{0,63}$' || { echo "bad package name" >&2; exit 2; }
|
|
48
|
-
|
|
48
|
+
if [ -r "/usr/share/doc/$pkg/changelog.Debian.gz" ]; then
|
|
49
|
+
echo "installed changelog (/usr/share/doc/$pkg/changelog.Debian.gz):"
|
|
50
|
+
zcat "/usr/share/doc/$pkg/changelog.Debian.gz" | head -n 80
|
|
51
|
+
else
|
|
52
|
+
echo "no installed changelog under /usr/share/doc/$pkg; candidate changelog from the Debian servers:"
|
|
53
|
+
apt-get changelog "$pkg" 2>&1 | head -n 80
|
|
54
|
+
fi ;;
|
|
49
55
|
auto-upgrades)
|
|
50
56
|
systemctl list-timers apt-daily.timer apt-daily-upgrade.timer --all --no-pager
|
|
51
57
|
echo "--- apt-daily and apt-daily-upgrade journal, 3 days:"
|