get.runos.com
AArch64 (ARM64) architecture stringReferences a systemd ExecStart directive
SHA-256745fc0e29ea1b69b22bc47f4b4b6feb685935239f935370521fdfbca1836851b
Evidence
1#!/bin/bash
2#
3# RunOS node installer.
4#
5# This file is STATIC. Conductor serves it byte for byte at /install/node.sh on the API host, the
6# same file for every account and every node. Nothing is filled in on the server. The install
7# command passes every value as an argument:
8#
9# curl -fsSL https://api.runos.com/install/node.sh | sudo bash -s -- \
10# --api https://api.runos.com --account <account id> --token <registration token> \
11# [--version <node agent version>]
12#
13# --version installs that exact release, a hidden release candidate included (for example
14# --version 1.8.5-rc.5). The binary is verified against that release's own checksums.txt.
15# Without --version the script installs the version conductor advertises for the account.
16# The join command that conductor ge …
⋯4 lines
39API_URL=""
40ACCOUNT_ID=""
41SECURITY_TOKEN=""
42VERSION=""
43
⋯4 lines
47:48… ent $1 needs a value"
48 opt="$1"
49 val="$2"
50 shift 2
51 ;;
52 --api=*|--account=*|--token=*|--version=*)
53 opt="${1%%=*}"
54 val="${1#*=}"
55 …
95:12… check disable=SC2206
96 b=( $MIN_VERSION )
97 for i in 0 1 2; do
98 if [ $((10#${a[$i]})) -lt $((10#${b[$i]})) ]; then return 0; fi
99 if [ $((10#${a[$i]})) -gt $((10#${b[$i]})) ]; then return 1; fi
100 done
101 [ -n "$pre" ]
102}
103
104[[ "$SECURITY_TOKEN" =~ $TOKEN_RE ]] || refuse "the --token value is missing or malformed (expected 64 letters and digits)"
105[[ "$ACCOUNT_ID" =~ $AC …
106:83… pected https://<host>)"
107if [ -n "$VERSION" ]; then
108 VERSION="${VERSION#v}"
109 [[ "$VERSION" =~ $VERSION_RE ]] || refuse "the --version value is malformed (expected a release version such as 1.2.3)"
110 …