Build Install Command

Install Command

Parameters: setup_url: Setup URL obtained from the License Info Api key: Setup key obtained from the License Info Api

Base Command

({setup_url} -4O setup.sh || curl {setup_url} -Lo setup.sh) && bash setup.sh {key}

When you run this command, you will be prompted to select an image. To use a pre-selected image, refer to the section below.

Pre-selected Image Command

Append -i={image_id} to the base command. image_id can be found in Images Api

Pre-Confirmed Command

Append -y to the command to skip confirmation prompts.

Init Script

#!/bin/bash
tries=10
while [ $tries -gt 0 ] && ! { (wget {setup_url} -4O install.sh || curl {setup_url} -Lo install.sh); } ; do
    echo "Download failed, retrying $tries more times"
    tries=$((tries-1))
    sleep 10
    echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" > /etc/resolv.conf
done
bash install.sh {key} -i={image_id} -y

Last updated