mirror of
https://github.com/community-unscripted/ProxmoxVED.git
synced 2026-07-01 20:24:00 -04:00
Initial agregarr
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: community-scripts
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/agregarr/agregarr
|
||||
|
||||
APP="Agregarr"
|
||||
var_tags="${var_tags:-media;plex;streaming}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
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/agregarr ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "agregarr" "agregarr/agregarr"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop agregarr
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Data"
|
||||
cp -r /opt/agregarr/config /opt/agregarr_config_backup
|
||||
msg_ok "Backed up Data"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "agregarr" "agregarr/agregarr" "tarball"
|
||||
|
||||
msg_info "Building Application"
|
||||
cd /opt/agregarr
|
||||
$STD yarn install
|
||||
$STD yarn build
|
||||
msg_ok "Built Application"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
cp -r /opt/agregarr_config_backup/. /opt/agregarr/config
|
||||
rm -rf /opt/agregarr_config_backup
|
||||
msg_ok "Restored Data"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start agregarr
|
||||
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}:7171${CL}"
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "Agregarr",
|
||||
"slug": "agregarr",
|
||||
"categories": [13],
|
||||
"date_created": "2026-03-08",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 7171,
|
||||
"documentation": "https://agregarr.org/docs/",
|
||||
"website": "https://github.com/agregarr/agregarr",
|
||||
"logo": "https://raw.githubusercontent.com/agregarr/agregarr/main/public/logo_full.svg",
|
||||
"config_path": "/opt/agregarr/config",
|
||||
"description": "Agregarr keeps your Plex Home and Recommended fresh by frequently updating it with Collections from various sources, including Trakt, IMDb, TMDB, Letterboxd, MDBList, FlixPatrol, AniList and MyAnimeList.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/agregarr.sh",
|
||||
"resources": {
|
||||
"cpu": 2,
|
||||
"ram": 4096,
|
||||
"hdd": 8,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": null,
|
||||
"password": null
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Configuration is created on first run. Access the web UI to complete setup.",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Requires connection to Plex, Radarr/Sonarr, and/or Overseerr for full functionality.",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: community-scripts
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/agregarr/agregarr
|
||||
|
||||
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 \
|
||||
sqlite3
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="20" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_release "agregarr" "agregarr/agregarr" "tarball"
|
||||
|
||||
msg_info "Building Application"
|
||||
cd /opt/agregarr
|
||||
$STD yarn install
|
||||
$STD yarn build
|
||||
msg_ok "Built Application"
|
||||
|
||||
msg_info "Creating Config Directory"
|
||||
mkdir -p /opt/agregarr/config
|
||||
msg_ok "Created Config Directory"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/agregarr.service
|
||||
[Unit]
|
||||
Description=Agregarr Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/agregarr
|
||||
Environment=NODE_ENV=production
|
||||
ExecStart=/usr/bin/yarn start
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now agregarr
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user