One-Click Install + Upgrade

NK install.sh one-click install + upgrade + auto-activate license.

Command

curl -fsSL https://www.host.mw/install.sh -o /tmp/i.sh && \
  NK_PLAN=business NK_LICENSE_CODE='<lic_id>' bash /tmp/i.sh

No sudo needed — install.sh self-elevates (detects uid != 0, auto execs sudo / doas / errors out).

7-step flow

  1. STEP 0/6 — detect host / arch / upgrade mode
  2. STEP 1/6 — create system user
  3. STEP 2/6 — download paid tarball (sign-bundle-url + bundle-dl token auth)
  4. STEP 3/6 — extract to $NK_HOME
  5. STEP 4/6 — upgrade keeps old creds/ports, fresh install randomizes
  6. STEP 5/6 — systemctl restart, await active
  7. STEP 5.5/6 — auto-activate: machine-id + ipify → POST auto-activate → write auth.lic → restart
  8. STEP 6/6 — self-check + display admin URL/Email/Password

Upgrade mode

NK already installed → preserve data/config/auth.lic/certs/logs, only overwrite binary + static + install resources. Reuse old systemd unit Environment.