added config file env var
This commit is contained in:
parent
818e14c644
commit
931dec957f
4
setup.sh
4
setup.sh
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$RCLONE_CONFIG_FILE" ]; then
|
||||||
|
echo "$RCLONE_CONFIG_FILE" > "${RCLONE_CONFIG:=/config/rclone.conf}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${RCLONE_CONFIG}" ]; then
|
if [ -z "${RCLONE_CONFIG}" ]; then
|
||||||
RCLONE_CONFIG="/config/rclone.conf"
|
RCLONE_CONFIG="/config/rclone.conf"
|
||||||
[ -e "${RCLONE_CONFIG}" ] || echo "No config file found"
|
[ -e "${RCLONE_CONFIG}" ] || echo "No config file found"
|
||||||
|
Loading…
Reference in New Issue
Block a user