Skip to content

Commit 0f59aba

Browse files
committed
chore(stacks): add rclone
1 parent 3d47604 commit 0f59aba

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@
224224
"owner": "rabbitmq",
225225
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
226226
},
227+
"rclone": {
228+
"name": "rclone",
229+
"type": "github",
230+
"owner": "rclone",
231+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
232+
},
227233
"redis": {
228234
"name": "redis",
229235
"type": "github",

stacks/rclone/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
rclone_zipname="rclone-v${STACK_VERSION}-linux-${OS_ARCH}"
12+
curl -SsL https://github.com/rclone/rclone/releases/download/v${STACK_VERSION}/${rclone_zipname}.zip -o rclone.zip \
13+
&& unzip -j rclone.zip ${rclone_zipname}/rclone -d "${BIN_DIR}"
14+
chmod +x "${BIN_DIR}"/"${STACK_NAME}"
15+
}
16+
17+
# call build stack
18+
build-stack "${1}"

0 commit comments

Comments
 (0)