forked from Magneto261299/shell
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart.sh
More file actions
24 lines (19 loc) · 652 Bytes
/
start.sh
File metadata and controls
24 lines (19 loc) · 652 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
if [[ -n $RCLONE_CONFIG_BASE64 ]]; then
echo "Rclone config detected"
mkdir -p /usr/src/app/.config/rclone
echo "$(echo $RCLONE_CONFIG_BASE64|base64 -d)" >> /usr/src/app/.config/rclone/rclone.conf
fi
if [[ -n $BOT_TOKEN && -n $OWNER_ID ]]; then
echo "Bot token and owner ID detected"
python3 config.py
fi
if [[ -n $CREDENTIALS_LINK ]]; then
echo "credentials.json detected"
aria2c $CREDENTIALS_LINK && drivedl set /usr/src/app/credentials.json
fi
if [[ -n $ACCOUNTS_FOLDER_LINK ]]; then
echo "accounts.zip detected"
aria2c $ACCOUNTS_FOLDER_LINK && unzip accounts.zip -d accounts && rm *.zip
fi
echo "SETUP COMPLETED"
node server