Files
ProxmoxVE/ct/mylar3.sh
T

47 lines
1.4 KiB
Bash
Raw Normal View History

2024-12-02 02:06:43 -06:00
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
2025-10-26 12:18:38 +01:00
# Author: davalanche | Co-Author: Slaviša Arežina (tremor021)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
2024-12-02 02:06:43 -06:00
# Source: https://github.com/mylar3/mylar3
APP="Mylar3"
var_tags="${var_tags:-torrent;downloader;comic}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
2026-06-12 00:16:15 +10:00
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
2024-12-02 02:06:43 -06:00
variables
color
catch_errors
function update_script() {
header_info
if [[ ! -d /opt/mylar3 ]]; then
2026-05-20 14:34:22 +02:00
msg_error "No Mylar3 Installation Found!"
exit
fi
2025-10-26 12:18:38 +01:00
2026-05-20 14:34:22 +02:00
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
systemctl restart mylar3
msg_ok "Updated successfully!"
fi
exit
2024-12-02 02:06:43 -06:00
}
start
build_container
description
2026-01-06 22:57:40 +01:00
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 "${GATEWAY}${BGN}http://${IP}:8090${CL}"