-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add RCLONE_CONFIG_BASE64 to config rclone on heroku * Update heroku docker run app.json
- Loading branch information
Showing
9 changed files
with
48 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,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 "Start Rclone, please make sure you can connect to Github website. if not, please set docker env ENABLE_RCLONE=false" | ||
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 "Skip starting Rclone as it's been disabled" | ||
echo "[INFO] Skip starting Rclone as it has been disabled" | ||
sleep 3650d | ||
fi |