23 lines
507 B
Bash
23 lines
507 B
Bash
#!/bin/sh
|
|
|
|
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}
|
|
}
|
|
|
|
# Install templater
|
|
installTool "tpr" "https://forge.cadoles.com/attachments/bbe5e07f-433c-4f57-ba88-4f86e2780ca7"
|
|
|
|
# Install bootstraper
|
|
installTool "btr" "https://forge.cadoles.com/attachments/ef2386f5-b3dc-4461-86d0-bfce9cad646a"
|