From 639bbd2703a69aa147717950dfeb22758d441ab6 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 13:38:15 +0200 Subject: [PATCH] Aurral (#16908) Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com> --- ct/aurral.sh | 74 +++++++++++++++++++++++++++++++++++++++ ct/headers/aurral | 6 ++++ install/aurral-install.sh | 70 ++++++++++++++++++++++++++++++++++++ 3 files changed, 150 insertions(+) create mode 100644 ct/aurral.sh create mode 100644 ct/headers/aurral create mode 100644 install/aurral-install.sh diff --git a/ct/aurral.sh b/ct/aurral.sh new file mode 100644 index 000000000..98cef007b --- /dev/null +++ b/ct/aurral.sh @@ -0,0 +1,74 @@ +#!/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: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/lklynet/aurral + +APP="Aurral" +var_tags="${var_tags:-music;lidarr;discovery}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-10}" +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 /opt/aurral ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "aurral" "lklynet/aurral"; then + msg_info "Stopping Service" + systemctl stop aurral + msg_ok "Stopped Service" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball" + + msg_info "Updating Aurral" + cd /opt/aurral + export VITE_APP_VERSION="$(cat ~/.aurral)" + export VITE_GITHUB_REPO="lklynet/aurral" + export VITE_RELEASE_CHANNEL="stable" + $STD npm ci --workspace frontend --include-workspace-root=false + $STD npm run build --workspace frontend + $STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false + mkdir -p /opt/aurral_data + cat </opt/aurral/aurral.env +NODE_ENV=production +PORT=3001 +AURRAL_DATA_DIR=/opt/aurral_data +APP_VERSION=$(cat ~/.aurral) +EOF + msg_ok "Updated Aurral" + + msg_info "Starting Service" + systemctl start aurral + 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 "${GATEWAY}${BGN}http://${IP}:3001${CL}" diff --git a/ct/headers/aurral b/ct/headers/aurral new file mode 100644 index 000000000..971307e43 --- /dev/null +++ b/ct/headers/aurral @@ -0,0 +1,6 @@ + ___ __ + / | __ ________________ _/ / + / /| |/ / / / ___/ ___/ __ `/ / + / ___ / /_/ / / / / / /_/ / / +/_/ |_\__,_/_/ /_/ \__,_/_/ + diff --git a/install/aurral-install.sh b/install/aurral-install.sh new file mode 100644 index 000000000..3344f9ada --- /dev/null +++ b/install/aurral-install.sh @@ -0,0 +1,70 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/lklynet/aurral + +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 \ + build-essential \ + python3 \ + ffmpeg \ + fontconfig \ + fonts-dejavu-core +msg_ok "Installed Dependencies" + +NODE_VERSION="22" setup_nodejs + +fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "yt-dlp" +fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball" + +msg_info "Building Aurral" +cd /opt/aurral +export VITE_APP_VERSION="$(cat ~/.aurral)" +export VITE_GITHUB_REPO="lklynet/aurral" +export VITE_RELEASE_CHANNEL="stable" +$STD npm ci --workspace frontend --include-workspace-root=false +$STD npm run build --workspace frontend +$STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false +msg_ok "Built Aurral" + +msg_info "Creating Service" +mkdir -p /opt/aurral_data +cat </opt/aurral/aurral.env +NODE_ENV=production +PORT=3001 +AURRAL_DATA_DIR=/opt/aurral_data +APP_VERSION=$(cat ~/.aurral) +EOF +cat </etc/systemd/system/aurral.service +[Unit] +Description=Aurral Service +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/aurral +EnvironmentFile=/opt/aurral/aurral.env +ExecStart=/usr/bin/node backend/server.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now aurral +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc