Update alpine-rclone

This commit is contained in:
tremor021
2025-04-23 19:31:26 +02:00
parent 02019ebf0f
commit 72ac3792ea
2 changed files with 28 additions and 17 deletions

View File

@@ -15,8 +15,8 @@ update_os
msg_info "Installing dependencies"
$STD apk add --no-cache \
unzip \
apache2-utils
unzip \
apache2-utils
msg_ok "Installed dependencies"
msg_info "Installing rclone"
@@ -29,9 +29,9 @@ cd /opt/rclone
PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16)
$STD htpasswd -cb -B login.pwd admin $PASSWORD
{
echo "rclone-Credentials"
echo "rclone User Name: admin"
echo "rclone Password: $PASSWORD"
echo "rclone-Credentials"
echo "rclone User Name: admin"
echo "rclone Password: $PASSWORD"
} >>~/rclone.creds
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
rm -f $temp_file
@@ -61,3 +61,8 @@ msg_ok "Started rclone"
motd_ssh
customize
msg_info "Cleaning up"
rm -rf "$temp_file"
$STD apk cache clean
msg_ok "Cleaned"