add cron option and tweak ss
This commit is contained in:
1 parent
9d2b5779bd
commit
86f55e1563
4 files changed
+69
-3
No files matched your search
+21
-1
@@ -45,7 +45,13 @@ FIREWALL_ID="165767433"
|
||||
# v3, adds crossplay
|
||||
#STACKSCRIPT_ID="2226356"
|
||||
# v4 actually adds crossplay
|
||||
STACKSCRIPT_ID=2234943
|
||||
#STACKSCRIPT_ID=2234943
|
||||
|
||||
# Stackscript 202611 changes:
|
||||
# Crossplay on:
|
||||
STACKSCRIPT_ID=2301158
|
||||
# Crossplay off:
|
||||
STACKSCRIPT_ID_CROSSPLAY_OFF=2301169
|
||||
|
||||
if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION" == "-?" ]]; then
|
||||
echo "Linode helper script: create-linode.sh <action> <label> [args]"
|
||||
@@ -53,6 +59,9 @@ if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION"
|
||||
echo " (fixed size: 8GB shared, newest Debian image;"
|
||||
echo " attaches and mounts volume $VOLUME_NAME;"
|
||||
echo " also refreshes the valheim A record)"
|
||||
echo " create-linode.sh c <new label> crossplay-off"
|
||||
echo " (same, but uses the crossplay-off StackScript"
|
||||
echo " ID $STACKSCRIPT_ID_CROSSPLAY_OFF instead of $STACKSCRIPT_ID)"
|
||||
echo "Destroy: create-linode.sh d <label>"
|
||||
echo "Connect: create-linode.sh x <label>"
|
||||
echo " create-linode.sh x <label> get <remote source> <local dest>"
|
||||
@@ -88,6 +97,17 @@ if [[ "$SCRIPT_ACTION" == "c" && -n "$LINODE_LABEL" ]]; then
|
||||
INSTANCE_SIZE="g6-standard-4"
|
||||
INSTANCE_IMAGE="linode/debian13"
|
||||
|
||||
# Optional third argument selects the crossplay-off StackScript instead of
|
||||
# the default crossplay-on one. Anything else is rejected so that a typo
|
||||
# cannot silently start a server with the wrong StackScript.
|
||||
if [[ "$3" == "crossplay-off" ]]; then
|
||||
STACKSCRIPT_ID=$STACKSCRIPT_ID_CROSSPLAY_OFF
|
||||
echo "Using crossplay-off StackScript ID $STACKSCRIPT_ID."
|
||||
elif [[ -n "$3" ]]; then
|
||||
echo "ERROR: unknown create option '$3' (only 'crossplay-off' is supported)." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# The StackScript (see stackscript.md) runs as root on first boot and mounts
|
||||
# the volume, so no SSH session is needed to configure it.
|
||||
curl -s -H "Content-Type: application/json" \
|
||||
|
||||
Reference in new issue
Block a user