From a89e2b2fccbeb54e4e26bb0e161515e8a9f101f7 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Mon, 28 Apr 2025 20:50:19 +0200 Subject: [PATCH] Update alpine-rclone --- ct/alpine-rclone.sh | 3 ++- frontend/public/json/alpine-rclone.json | 11 +++++------ install/alpine-rclone-install.sh | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ct/alpine-rclone.sh b/ct/alpine-rclone.sh index fc4d924..687885c 100644 --- a/ct/alpine-rclone.sh +++ b/ct/alpine-rclone.sh @@ -30,12 +30,13 @@ function update_script() { 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/${APP}_version.txt)" ] || [ ! -f /opt/${APP}_version.txt ]; then + if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then msg_info "Updating ${APP} LXC" temp_file=$(mktemp) curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclone-v${RELEASE}-linux-amd64.zip" -o "$temp_file" $STD unzip -o "$temp_file" '*/**' -d /opt/rclone rm -f "$temp_file" + echo "${RELEASE}" >/opt/rclone_version.txt msg_ok "Updated Successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}" diff --git a/frontend/public/json/alpine-rclone.json b/frontend/public/json/alpine-rclone.json index d017010..a84f046 100644 --- a/frontend/public/json/alpine-rclone.json +++ b/frontend/public/json/alpine-rclone.json @@ -2,9 +2,9 @@ "name": "Alpine-rclone", "slug": "alpine-rclone", "categories": [ - 20 + 11 ], - "date_created": "2025-04-11", + "date_created": "2025-04-28", "type": "ct", "updateable": true, "privileged": false, @@ -12,7 +12,7 @@ "documentation": "https://rclone.org/docs/", "website": "https://rclone.org/", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/rclone.svg", - "config_path": "", + "config_path": "~/.config/rclone/rclone.conf", "description": "Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces", "install_methods": [ { @@ -21,7 +21,7 @@ "resources": { "cpu": 1, "ram": 256, - "hdd": 0.2, + "hdd": 1, "os": "alpine", "version": "3.21" } @@ -32,7 +32,7 @@ "resources": { "cpu": 1, "ram": 256, - "hdd": 0.2, + "hdd": 1, "os": "alpine", "version": "3.21" } @@ -53,4 +53,3 @@ } ] } - diff --git a/install/alpine-rclone-install.sh b/install/alpine-rclone-install.sh index 311cb4f..7833188 100644 --- a/install/alpine-rclone-install.sh +++ b/install/alpine-rclone-install.sh @@ -33,7 +33,7 @@ $STD htpasswd -cb -B login.pwd admin "$RCLONE_PASSWORD" echo "rclone User Name: admin" echo "rclone Password: $RCLONE_PASSWORD" } >>~/rclone.creds -echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt +echo "${RELEASE}" >/opt/rclone_version.txt rm -f "$temp_file" msg_ok "Installed rclone"