Added many, many more actions.

This commit is contained in:
2025-06-24 15:24:16 -07:00
parent 62fbe4dead
commit 57ef232d2b
108 changed files with 4212 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
SERIAL=$1; USERNAME=$2; PASSWORD=$3;
function check_path
{
local SECRET_PATH="/run/secrets"
local ENV_NAME="$1"
local ENV_VALUE="${!ENV_NAME}"
local FILE_PATH="$SECRET_PATH/$ENV_NAME"
if [[ -z "$ENV_VALUE" && -f "$FILE_PATH" ]]; then
export $ENV_NAME=$(cat "$FILE_PATH")
fi
}
check_path SERIAL
check_path USERNAME
check_path PASSWORD
if [[ -z "$SERIAL" || -z "$USERNAME" || -z "$PASSWORD" ]]; then
exit 0
fi
#Activate Unity
if [[ "$SERIAL" == "personal" ]]; then
UnityBuilder activate -i /usr/bin/unity-editor -u $USERNAME -p $PASSWORD
else
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $USERNAME -password $PASSWORD
fi