diff --git a/ct/minarca.sh b/ct/minarca.sh new file mode 100644 index 0000000..baa2dcb --- /dev/null +++ b/ct/minarca.sh @@ -0,0 +1,53 @@ +#!/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://gitlab.com/ikus-soft/minarca + +APP="AppName" +var_tags="finance" +var_cpu="2" +var_ram="4096" +var_disk="10" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/minarca-server ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Stopping ${APP}" + systemctl stop minarca-server + msg_ok "${APP} Stopped" + + msg_info "Updating ${APP} LXC" + $STD apt-get update + $STD apt-get upgrade -y + msg_ok "Updated ${APP} LXC" + + msg_info "Starting ${APP}" + systemctl start minarca-server + msg_ok "Restarted ${APP}" + exit +} + +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 URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" diff --git a/frontend/public/json/minarca.json b/frontend/public/json/minarca.json new file mode 100644 index 0000000..d68221b --- /dev/null +++ b/frontend/public/json/minarca.json @@ -0,0 +1,35 @@ +{ + "name": "Minarca", + "slug": "minarca", + "categories": [ + 7 + ], + "date_created": "2025-05-27", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8080, + "documentation": "https://nexus.ikus-soft.com/repository/archive/minarca/6.0.3/doc/index.html", + "config_path": "/etc/minarca/minarca-server.conf", + "website": "https://minarca.org/en_CA", + "logo": "n/a", + "description": "Minarca is a self-hosted open source data backup software that allows you to manage your computer and server backups for free from a direct online accessible centralized view of your data with easy retrieval.", + "install_methods": [ + { + "type": "default", + "script": "ct/minarca.sh", + "resources": { + "cpu": 2, + "ram": 4096, + "hdd": 10, + "os": "Debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "admin", + "password": "admin123" + }, + "notes": [] +} diff --git a/install/minarca-install.sh b/install/minarca-install.sh new file mode 100644 index 0000000..82472d3 --- /dev/null +++ b/install/minarca-install.sh @@ -0,0 +1,36 @@ +#!/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://gitlab.com/ikus-soft/minarca + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y \ + apt-transport-https \ + ca-certificates \ + lsb-release +msg_ok "Installed Dependencies" + +msg_info "Installing Minarca" +curl -fsSL https://www.ikus-soft.com/archive/minarca/public.key | gpg --dearmor >/usr/share/keyrings/minarca-keyring.gpg +echo "deb [arch=amd64 signed-by=/usr/share/keyrings/minarca-keyring.gpg] https://nexus.ikus-soft.com/repository/apt-release-$(lsb_release -sc)/ $(lsb_release -sc) main" >/etc/apt/sources.list.d/minarca.list +$STD apt-get update +$STD apt-get install minarca-server +msg_ok "Installed Minarca" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"