From 2fc1e1de51fff57feb5a80fa2321b1d3abe12dd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 6 May 2025 12:03:57 +0000 Subject: [PATCH] Deleted files for issue: alpine-rclone --- ct/alpine-rclone.sh | 55 -------------------- frontend/public/json/alpine-rclone.json | 55 -------------------- install/alpine-rclone-install.sh | 68 ------------------------- 3 files changed, 178 deletions(-) delete mode 100644 ct/alpine-rclone.sh delete mode 100644 frontend/public/json/alpine-rclone.json delete mode 100644 install/alpine-rclone-install.sh diff --git a/ct/alpine-rclone.sh b/ct/alpine-rclone.sh deleted file mode 100644 index 687885c..0000000 --- a/ct/alpine-rclone.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/rclone/rclone - -APP="Alpine-rclone" -var_tags="${var_tags:-alpine;backup}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-256}" -var_disk="${var_disk:-1}" -var_os="${var_os:-alpine}" -var_version="${var_version:-3.21}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [ ! -d /opt/rclone ]; then - 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" - 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}" - fi - - exit 0 -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} Access it using the following IP:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/frontend/public/json/alpine-rclone.json b/frontend/public/json/alpine-rclone.json deleted file mode 100644 index a84f046..0000000 --- a/frontend/public/json/alpine-rclone.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "Alpine-rclone", - "slug": "alpine-rclone", - "categories": [ - 11 - ], - "date_created": "2025-04-28", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://rclone.org/docs/", - "website": "https://rclone.org/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/rclone.svg", - "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": [ - { - "type": "default", - "script": "ct/alpine-rclone.sh", - "resources": { - "cpu": 1, - "ram": 256, - "hdd": 1, - "os": "alpine", - "version": "3.21" - } - }, - { - "type": "alpine", - "script": "ct/alpine-rclone.sh", - "resources": { - "cpu": 1, - "ram": 256, - "hdd": 1, - "os": "alpine", - "version": "3.21" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "type": "info", - "text": "`cat ~/rclone.creds` to view login credentials" - }, - { - "type": "info", - "text": "`htpasswd -b -B /opt/rclone/login.pwd newuser newuserpassword` to add more users." - } - ] -} diff --git a/install/alpine-rclone-install.sh b/install/alpine-rclone-install.sh deleted file mode 100644 index 7833188..0000000 --- a/install/alpine-rclone-install.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2025 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/rclone/rclone - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing dependencies" -$STD apk add --no-cache \ - unzip \ - apache2-utils -msg_ok "Installed dependencies" - -msg_info "Installing rclone" -temp_file=$(mktemp) -mkdir -p /opt/rclone -RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -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 -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: $RCLONE_PASSWORD" -} >>~/rclone.creds -echo "${RELEASE}" >/opt/rclone_version.txt -rm -f "$temp_file" -msg_ok "Installed rclone" - -msg_info "Enabling rclone Service" -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_background="true" -command_user="root" -pidfile="/var/run/rclone.pid" - -depend() { - use net -} -EOF -chmod +x /etc/init.d/rclone -$STD rc-update add rclone default -msg_ok "Enabled rclone Service" - -msg_info "Starting rclone" -$STD service rclone start -msg_ok "Started rclone" - -motd_ssh -customize - -msg_info "Cleaning up" -rm -rf "$temp_file" -$STD apk cache clean -msg_ok "Cleaned"