[root@work1 ~]# curl --insecure -fL https://10.0.0.220/system-agent-install.sh | sudo sh -s - --server https://10.0.0.220 --label ‘cattle.io/os=linux’ --token 6xlkqtgkxzs54gd98ndc7ldlk466frzvbcshjgv878pwlhb6sj5j6q --ca-checksum f7132402f21460d35f2329ac5d3a401cf8e79fcfd449fdb5e88dd3cd7fb8a3fa --etcd --controlplane --worker
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 33050 0 33050 0 0 949k 0 --:–:-- --:–:-- --:–:-- 949k
[INFO] Label: cattle.io/os=linux
[INFO] Role requested: etcd
[INFO] Role requested: controlplane
[INFO] Role requested: worker
[INFO] CA strict verification is set to true
[INFO] Using default agent configuration directory /etc/rancher/agent
[INFO] Using default agent var directory /var/lib/rancher/agent
main: line 898: [: missing `]’
[INFO] Successfully downloaded CA certificate
[INFO] Value from https://10.0.0.220/cacerts is an x509 certificate
[INFO] Successfully tested Rancher connection
[INFO] Rancher System Agent was detected on this host. Ensuring the rancher-system-agent is stopped.
[INFO] Downloading rancher-system-agent binary from https://10.0.0.220/assets/rancher-system-agent-amd64
[INFO] Successfully downloaded the rancher-system-agent binary.
[INFO] Downloading rancher-system-agent-uninstall.sh script from https://10.0.0.220/assets/system-agent-uninstall.sh
[INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
[INFO] Generating Cattle ID
[INFO] Cattle ID was already detected as 3d179a3be429dffcc71be3e0262235e57e5fc7719663e8f237f6b87dbff1d14. Not generating a new one.
[INFO] Successfully downloaded Rancher connection information
[INFO] systemd: Creating service file
[INFO] Creating environment file /etc/systemd/system/rancher-system-agent.env
[INFO] Enabling rancher-system-agent.service
[INFO] Starting/restarting rancher-system-agent.service