24 lines
522 B
Bash
24 lines
522 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
TOOL_DIR="${1:-/usr/local/bin}"
|
|
TOOL_USER="${2:-root}"
|
|
TOOL_GROUP="${3:-root}"
|
|
ATTACHMENT_URL="https://forge.cadoles.com/attachments/"
|
|
|
|
installTool() {
|
|
NAME="${1}"
|
|
URL="${2}"
|
|
|
|
curl -k -o ${TOOL_DIR}/${NAME} ${URL}
|
|
chmod +x ${TOOL_DIR}/${NAME}
|
|
}
|
|
|
|
apk add curl
|
|
|
|
# Install templater
|
|
installTool "tpr" "https://forge.cadoles.com/attachments/242b3cba-8d07-4b89-80ab-7c12253a8524"
|
|
# Install bootstraper
|
|
installTool "btr" "https://forge.cadoles.com/attachments/e8442b2a-2065-4282-b4a4-648681fa044c"
|