diff --git a/ct/headers/whisparr-eros b/ct/headers/whisparr-eros new file mode 100644 index 000000000..dbbfbe6e6 --- /dev/null +++ b/ct/headers/whisparr-eros @@ -0,0 +1,6 @@ + _ ____ _ ______ +| | / / /_ (_)________ ____ ___________ / ____/________ _____ +| | /| / / __ \/ / ___/ __ \/ __ `/ ___/ ___/_____/ __/ / ___/ __ \/ ___/ +| |/ |/ / / / / (__ ) /_/ / /_/ / / / / /_____/ /___/ / / /_/ (__ ) +|__/|__/_/ /_/_/____/ .___/\__,_/_/ /_/ /_____/_/ \____/____/ + /_/ diff --git a/ct/whisparr-eros.sh b/ct/whisparr-eros.sh new file mode 100644 index 000000000..3941a9314 --- /dev/null +++ b/ct/whisparr-eros.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" +_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 +# Author: angusmaul +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Whisparr/Whisparr-Eros + +APP="Whisparr-Eros" +var_tags="${var_tags:-arr}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +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 /var/lib/whisparr-eros ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros"; then + msg_info "Stopping Service" + systemctl stop whisparr-eros + msg_ok "Stopped Service" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros" "prebuild" "latest" "/opt/Whisparr-Eros" "Whisparr.eros.*.linux-$(arch_resolve "x64" "arm64").tar.gz" + rm -rf /opt/Whisparr-Eros/Whisparr.Update + chmod +x /opt/Whisparr-Eros/Whisparr + + msg_info "Starting Service" + systemctl start whisparr-eros + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + 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}:6969${CL}" diff --git a/install/whisparr-eros-install.sh b/install/whisparr-eros-install.sh new file mode 100644 index 000000000..71615f25a --- /dev/null +++ b/install/whisparr-eros-install.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: angusmaul +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Whisparr/Whisparr-Eros + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y sqlite3 libicu-dev +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros" "prebuild" "latest" "/opt/Whisparr-Eros" "Whisparr.eros.*.linux-$(arch_resolve "x64" "arm64").tar.gz" + +msg_info "Configuring Whisparr-Eros" +rm -rf /opt/Whisparr-Eros/Whisparr.Update +chmod +x /opt/Whisparr-Eros/Whisparr +mkdir -p /var/lib/whisparr-eros/ +chmod 775 /var/lib/whisparr-eros/ /opt/Whisparr-Eros/ +msg_ok "Configured Whisparr-Eros" + +msg_info "Creating Service" +cat </etc/systemd/system/whisparr-eros.service +[Unit] +Description=Whisparr-Eros Daemon +After=syslog.target network.target + +[Service] +UMask=0002 +Type=simple +ExecStart=/opt/Whisparr-Eros/Whisparr -nobrowser -data=/var/lib/whisparr-eros/ +TimeoutStopSec=20 +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now whisparr-eros +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc