forked from menubboi/HerokuShell-Rclone
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathstart.sh
More file actions
27 lines (22 loc) · 732 Bytes
/
Copy pathstart.sh
File metadata and controls
27 lines (22 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Install rclone static binary
wget -q https://downloads.rclone.org/v1.58.1/rclone-v1.58.1-linux-amd64.zip
unzip -q rclone-v1.58.1-linux-amd64.zip
export PATH=$PWD/rclone-v1.58.1-linux-amd64:$PATH
echo "Rclone installed successfully"
# setup rclone.conf file
if [[ -n $RCLONE_CONFIG_BASE64 ]]; then
echo "Rclone config detected"
echo "[DRIVE]" > rclone.conf
mkdir -p /app/.config/rclone/
echo "$(echo $RCLONE_CONFIG_BASE64|base64 -d)" >> /app/.config/rclone/rclone.conf
echo "Rclone config placed in position"
fi
if [[ -n $BOT_TOKEN && -n $OWNER_ID ]]; then
echo "Bot token and owner ID detected"
cd TelegramShellBot-Rclone
python3 config.py
fi
echo "SETUP COMPLETED"
# start boy
npm start