diff --git a/ct/alpine-rclone.sh b/ct/alpine-rclone.sh index d3e7fd7c3..b3451ba24 100644 --- a/ct/alpine-rclone.sh +++ b/ct/alpine-rclone.sh @@ -28,7 +28,6 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit 1 fi - RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then msg_info "Updating ${APP} LXC" diff --git a/frontend/public/json/alpine-rclone.json b/frontend/public/json/alpine-rclone.json index 9defea694..7bdc79a37 100644 --- a/frontend/public/json/alpine-rclone.json +++ b/frontend/public/json/alpine-rclone.json @@ -49,7 +49,7 @@ }, { "type": "info", - "text": "`htpasswd -b -B /opt/rclone/login.pwd newuser newuserpassword` to add more users." + "text": "`htpasswd -b -B /opt/login.pwd newuser newuserpassword` to add more users." } ] } diff --git a/install/alpine-rclone-install.sh b/install/alpine-rclone-install.sh index 78331880b..59368b973 100644 --- a/install/alpine-rclone-install.sh +++ b/install/alpine-rclone-install.sh @@ -27,7 +27,7 @@ curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclon $STD unzip -j "$temp_file" '*/**' -d /opt/rclone cd /opt/rclone RCLONE_PASSWORD=$(head -c 16 /dev/urandom | xxd -p -c 16) -$STD htpasswd -cb -B login.pwd admin "$RCLONE_PASSWORD" +$STD htpasswd -cb -B /opt/login.pwd admin "$RCLONE_PASSWORD" { echo "rclone-Credentials" echo "rclone User Name: admin" @@ -42,7 +42,7 @@ cat </etc/init.d/rclone #!/sbin/openrc-run description="rclone Service" command="/opt/rclone/rclone" -command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/rclone/login.pwd" +command_args="rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :3000 --rc-htpasswd /opt/login.pwd" command_background="true" command_user="root" pidfile="/var/run/rclone.pid"