From b267ce4c510afcbd30c81a8452e7cddbef276ffc Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 24 Apr 2025 08:17:07 +0200 Subject: [PATCH] change alpine-rcloud password variable --- install/alpine-rclone-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/alpine-rclone-install.sh b/install/alpine-rclone-install.sh index ddcec77..311cb4f 100644 --- a/install/alpine-rclone-install.sh +++ b/install/alpine-rclone-install.sh @@ -26,12 +26,12 @@ RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | g curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclone-v${RELEASE}-linux-amd64.zip" -o "$temp_file" $STD unzip -j "$temp_file" '*/**' -d /opt/rclone cd /opt/rclone -PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16) -$STD htpasswd -cb -B login.pwd admin "$PASSWORD" +RCLONE_PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16) +$STD htpasswd -cb -B login.pwd admin "$RCLONE_PASSWORD" { echo "rclone-Credentials" echo "rclone User Name: admin" - echo "rclone Password: $PASSWORD" + echo "rclone Password: $RCLONE_PASSWORD" } >>~/rclone.creds echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt rm -f "$temp_file"