20 lines
826 B
Bash
20 lines
826 B
Bash
#!/usr/bin/env bash
|
|
|
|
exec > >(tee -i /var/log/stackscript.log) 2>&1
|
|
set -euo pipefail
|
|
|
|
# UDF fields
|
|
# <UDF name="NAME" label="Node name" />
|
|
# <UDF name="GROUP" label="Create group (Optional)" default="" />
|
|
# <UDF name="SSH_USER" label="Non-root username" />
|
|
# <UDF name="USER_PASSWORD" label="Password for non-root user" />
|
|
# <UDF name="SSH_PUBLIC_KEY" label="SSH public key for the non-root user" default="" />
|
|
# <UDF name="SSH_PORT" label="SSH Port" default="22" />
|
|
# <UDF name="TIMEZONE" label="Timezone" default="America/Toronto" />
|
|
# <UDF name="ADD_CLOUDFLARE_IPS" label="Allow Cloudflare IPs through firewall?" type="boolean" default="false" />
|
|
|
|
source <ssinclude StackScriptID="1">
|
|
source <ssinclude StackScriptID="__ESSENTIALS_STACKSCRIPT_ID__">
|
|
touch ~/.hushlogin
|
|
|
|
echo "Services StackScript completed successfully!"
|