2022-12-06 15:44:25 +01:00
|
|
|
#!/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}
|
|
|
|
}
|
|
|
|
|
2022-12-28 09:51:38 +01:00
|
|
|
apk add curl
|
|
|
|
|
2022-12-06 15:44:25 +01:00
|
|
|
# Install templater
|
2023-01-12 14:00:02 +01:00
|
|
|
installTool "tpr" "https://forge.cadoles.com/attachments/242b3cba-8d07-4b89-80ab-7c12253a8524"
|
2022-12-06 15:44:25 +01:00
|
|
|
# Install bootstraper
|
2023-01-12 14:00:02 +01:00
|
|
|
installTool "btr" "https://forge.cadoles.com/attachments/e8442b2a-2065-4282-b4a4-648681fa044c"
|