Adds support for custom admin port via env var #3808

and documentation
This commit is contained in:
Jamie Curnow committed 2026-06-10 11:24:53 +10:00
1 parent a5db5ed156
commit a62c2a6dc3
13 files changed
+67 -10

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
OK=$(curl --silent http://127.0.0.1:81/api/ | jq --raw-output '.status')
OK=$(curl --silent "http://127.0.0.1:${NPM_ADMIN_PORT:-81}/api/" | jq --raw-output '.status')
if [ "$OK" == "OK" ]; then
echo "OK"
+4
View File
@@ -70,3 +70,7 @@ is_true () {
echo '0'
fi
}
is_mounted() {
awk -v p="$1" '$5 == p { found=1 } END { exit !found }' /proc/self/mountinfo
}