-
-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy pathrclone.sh
More file actions
executable file
·20 lines (18 loc) · 678 Bytes
/
rclone.sh
File metadata and controls
executable file
·20 lines (18 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash -eu
if [ "$RCLONE_CONFIG_BASE64" != "" ]; then
echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 env"
echo $RCLONE_CONFIG_BASE64 | base64 -d > /app/conf/rclone.conf
echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 completed"
fi
if [ "$ENABLE_RCLONE" = "true" ]; then
echo "[INFO] Start Rclone, please make sure you can connect to Github website. if not, please set docker env ENABLE_RCLONE=false"
rclone rcd --rc-web-gui \
--rc-web-gui-no-open-browser \
--rc-addr :5572 \
--rc-user $ARIA2_USER \
--rc-pass $ARIA2_PWD \
--cache-dir /app/.cache
else
echo "[INFO] Skip starting Rclone as it has been disabled"
sleep 3650d
fi