36 lines
943 B
Plaintext

#!/usr/bin/with-contenv bash
# _ _ ____ ____
# / \ _ __(_) __ _|___ \ | _ \ _ __ ___
# / _ \ | '__| |/ _` | __) | | |_) | '__/ _ \
# / ___ \| | | | (_| |/ __/ | __/| | | (_) |
# /_/ \_\_| |_|\__,_|_____| |_| |_| \___/
#
# https://github.com/P3TERX/Aria2-Pro-Docker
#
# Copyright (c) 2020-2021 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
. /etc/init-base
INSTALL_RCLONE() {
if [[ ! -f /usr/local/bin/rclone ]]; then
echo
echo -e "${INFO} Installing RCLONE ..."
[[ -L /usr/bin/unzip ]] && rm -f /usr/bin/unzip
curl -fsSL https://rclone.org/install.sh | bash
fi
}
if [[ "${SPECIAL_MODE}" = "rclone" ]]; then
INSTALL_RCLONE
PROFILES="upload.sh rclone.env"
DOWNLOAD_PROFILE
elif [[ "${SPECIAL_MODE}" = "move" ]]; then
PROFILES="move.sh"
DOWNLOAD_PROFILE
fi
exit 0