diff --git a/ct/castopod.sh b/ct/castopod.sh deleted file mode 100644 index 1dd3094686..0000000000 --- a/ct/castopod.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -# Engine comes from community-scripts/core; this repo only ships the scripts. -# A local core checkout wins (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core), -# so a fork or branch of core can be tested without editing this file. -_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/DevScripts/raw/main/LICENSE -# Source: https://castopod.org/ - -APP="Castopod" -var_tags="${var_tags:-podcast;media;fediverse}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-16}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2028}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -f /opt/castopod/spark ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - # Castopod appends the media folder itself, so the old default produced /media/media/ - sed -i 's|^\(media\.baseURL="[^"]*\)/media/"$|\1/"|' /opt/castopod/.env - - if GITLAB_URL="https://code.castopod.org" check_for_gl_release "castopod" "adaures/castopod"; then - msg_info "Stopping Service" - systemctl stop caddy - msg_ok "Stopped Service" - - create_backup /opt/castopod/.env \ - /opt/castopod/public/media \ - /opt/castopod/writable - - CLEAN_INSTALL=1 GITLAB_URL="https://code.castopod.org" fetch_and_deploy_gl_release "castopod" "adaures/castopod" "prebuild" "latest" "/opt/castopod" "castopod-*.tar.gz" - - restore_backup - - msg_info "Updating Application" - cd /opt/castopod - mkdir -p public/media writable - chown -R www-data:www-data /opt/castopod/public/media /opt/castopod/writable - $STD php spark castopod:database-update - msg_ok "Updated Application" - - msg_info "Starting Service" - systemctl start caddy - 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}${CL}" diff --git a/install/castopod-install.sh b/install/castopod-install.sh deleted file mode 100644 index 5e5f986f56..0000000000 --- a/install/castopod-install.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://castopod.org/ - -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 caddy -msg_ok "Installed Dependencies" - -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="curl,exif,gd,intl,mbstring,mysql,xml,zip" setup_php -setup_mariadb -MARIADB_DB_NAME="castopod" MARIADB_DB_USER="castopod" setup_mariadb_db - -setup_deb822_repo \ - "jellyfin" \ - "https://repo.jellyfin.org/jellyfin_team.gpg.key" \ - "https://repo.jellyfin.org/debian" \ - "$(get_os_info codename)" -$STD apt install -y jellyfin-ffmpeg7 -ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg -ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe - -GITLAB_URL="https://code.castopod.org" fetch_and_deploy_gl_release \ - "castopod" \ - "adaures/castopod" \ - "prebuild" \ - "latest" \ - "/opt/castopod" \ - "castopod-*.tar.gz" - -cd / -msg_info "Configuring Castopod" - -mkdir -p \ - /opt/castopod/public/media \ - /opt/castopod/writable - -CASTOPOD_SALT="$(openssl rand -hex 32)" - -cat </opt/castopod/.env -app.baseURL="http://${LOCAL_IP}/" -media.baseURL="http://${LOCAL_IP}/" -app.forceGlobalSecureRequests=false -admin.gateway="cp-admin" -auth.gateway="cp-auth" -analytics.salt="${CASTOPOD_SALT}" - -database.default.hostname="127.0.0.1" -database.default.database="${MARIADB_DB_NAME}" -database.default.username="${MARIADB_DB_USER}" -database.default.password="${MARIADB_DB_PASS}" -database.default.DBPrefix="cp_" - -cache.handler="file" -EOF -chown root:www-data /opt/castopod/.env -chown -R www-data:www-data \ - /opt/castopod/public/media \ - /opt/castopod/writable -msg_ok "Configured Castopod" - -msg_info "Initializing Castopod Database" -cd /opt/castopod -$STD runuser -u www-data -- php spark install:init-database -cd / -msg_ok "Initialized Castopod Database" - -msg_info "Creating Castopod Superadmin" -CASTOPOD_ADMIN_USERNAME="admin" -CASTOPOD_ADMIN_EMAIL="admin@${LOCAL_IP}.nip.io" -CASTOPOD_ADMIN_PASSWORD="$(openssl rand -base64 24 | tr -d '/+=' | cut -c1-20)" -if ! printf '%s\n%s\n' "${CASTOPOD_ADMIN_PASSWORD}" "${CASTOPOD_ADMIN_PASSWORD}" | - runuser -u www-data -- php /opt/castopod/spark install:create-superadmin \ - -n "${CASTOPOD_ADMIN_USERNAME}" \ - -e "${CASTOPOD_ADMIN_EMAIL}"; then - msg_error "Failed to create Castopod Superadmin" - exit 1 -fi - -cat </root/castopod.creds -Castopod URL: http://${LOCAL_IP}/cp-admin -Username: ${CASTOPOD_ADMIN_USERNAME} -Email: ${CASTOPOD_ADMIN_EMAIL} -Password: ${CASTOPOD_ADMIN_PASSWORD} -EOF -unset CASTOPOD_ADMIN_USERNAME -unset CASTOPOD_ADMIN_EMAIL -unset CASTOPOD_ADMIN_PASSWORD -cd / -msg_ok "Created Castopod Superadmin" - -msg_info "Configuring Caddy" -PHP_VER="$(php -r 'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION;')" -PHP_FPM_SERVICE="php${PHP_VER}-fpm" -PHP_FPM_SOCKET="/run/php/php${PHP_VER}-fpm.sock" -cat </etc/caddy/Caddyfile -:80 { - root * /opt/castopod/public - encode gzip - php_fastcgi unix/${PHP_FPM_SOCKET} - file_server -} -EOF -usermod -aG www-data caddy -$STD caddy fmt --overwrite /etc/caddy/Caddyfile -$STD caddy validate \ - --config /etc/caddy/Caddyfile \ - --adapter caddyfile -msg_ok "Configured Caddy" - -msg_info "Creating Scheduled Tasks" -cat <<'EOF' >/etc/cron.d/castopod -* * * * * www-data cd /opt/castopod && /usr/bin/php spark tasks:run >/dev/null 2>&1 -EOF -chmod 644 /etc/cron.d/castopod -msg_ok "Created Scheduled Tasks" - -msg_info "Starting Services" - -systemctl enable -q "$PHP_FPM_SERVICE" caddy -systemctl restart "$PHP_FPM_SERVICE" -systemctl restart caddy -msg_ok "Started Services" - -motd_ssh -customize -cleanup_lxc diff --git a/json/castopod.json b/json/castopod.json deleted file mode 100644 index 543478cbd7..0000000000 --- a/json/castopod.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "Castopod", - "slug": "castopod", - "categories": [ - 13 - ], - "date_created": "2026-07-16", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "architectures": ["amd64", "arm64"], - "interface_port": 80, - "documentation": "https://docs.castopod.org/main/en/", - "website": "https://castopod.org/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/castopod.webp", - "description": "Castopod is a free and open-source podcast hosting platform with Podcasting 2.0, analytics and ActivityPub federation features.", - "install_methods": [ - { - "type": "default", - "script": "ct/castopod.sh", - "config_path": "/opt/castopod/.env", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 16, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "Complete the initial setup at http://IP/cp-install, then sign in through http://IP/cp-admin.", - "type": "info" - }, - { - "text": "Set a public HTTPS domain in /opt/castopod/.env before publishing podcasts or enabling ActivityPub federation.", - "type": "warning" - }, - { - "text": "Podcast media is stored in /opt/castopod/public/media. Include it and the MariaDB database in regular container backups.", - "type": "warning" - } - ] -} \ No newline at end of file