Compare commits

..

1 Commits

Author SHA1 Message Date
CanbiZ
f00c0fd39d Update script URLs to ProxmoxVE repository
Corrected references from 'ProxmoxVED' to 'ProxmoxVE' in sourced URLs across livebook.sh, glances.sh, and pve-privilege-converter.sh to ensure scripts use the correct repository.
2025-11-07 12:06:22 +01:00
13 changed files with 278 additions and 406 deletions

View File

@@ -10,22 +10,6 @@
> [!CAUTION] > [!CAUTION]
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes. Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
## 2025-11-08
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Technitium DNS: Fix update [@tremor021](https://github.com/tremor021) ([#8980](https://github.com/community-scripts/ProxmoxVE/pull/8980))
- MediaManager: add LOG_FILE to start.sh script; fix BASE_PATH and PUBLIC_API_URL [@vhsdream](https://github.com/vhsdream) ([#8981](https://github.com/community-scripts/ProxmoxVE/pull/8981))
- Firefly: Fix missing command in update script [@tremor021](https://github.com/tremor021) ([#8972](https://github.com/community-scripts/ProxmoxVE/pull/8972))
- MongoDB: Remove unused message [@tremor021](https://github.com/tremor021) ([#8969](https://github.com/community-scripts/ProxmoxVE/pull/8969))
- Set TZ=Etc/UTC in Ghostfolio installation script [@LuloDev](https://github.com/LuloDev) ([#8961](https://github.com/community-scripts/ProxmoxVE/pull/8961))
- #### 🔧 Refactor
- Refactor setup_deb822_repo for optional architectures [@MickLesk](https://github.com/MickLesk) ([#8983](https://github.com/community-scripts/ProxmoxVE/pull/8983))
## 2025-11-07 ## 2025-11-07
### 🆕 New Scripts ### 🆕 New Scripts
@@ -36,15 +20,9 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes - #### 🐞 Bug Fixes
- Update script URLs to ProxmoxVE repository [@MickLesk](https://github.com/MickLesk) ([#8946](https://github.com/community-scripts/ProxmoxVE/pull/8946))
- tools.func: fix amd64 arm64 mismatch [@MickLesk](https://github.com/MickLesk) ([#8943](https://github.com/community-scripts/ProxmoxVE/pull/8943))
- ghostfolio: refactor CoinGecko key prompts in installer [@MickLesk](https://github.com/MickLesk) ([#8935](https://github.com/community-scripts/ProxmoxVE/pull/8935)) - ghostfolio: refactor CoinGecko key prompts in installer [@MickLesk](https://github.com/MickLesk) ([#8935](https://github.com/community-scripts/ProxmoxVE/pull/8935))
- flaresolverr: pin release to 3.4.3 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#8937](https://github.com/community-scripts/ProxmoxVE/pull/8937)) - flaresolverr: pin release to 3.4.3 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#8937](https://github.com/community-scripts/ProxmoxVE/pull/8937))
- #### ✨ New Features
- Pangolin: Add Traefik proxy [@tremor021](https://github.com/tremor021) ([#8952](https://github.com/community-scripts/ProxmoxVE/pull/8952))
## 2025-11-06 ## 2025-11-06
### 🚀 Updated Scripts ### 🚀 Updated Scripts

View File

@@ -51,7 +51,7 @@ function update_script() {
find /opt/firefly/storage -type f -exec chmod 664 {} \; find /opt/firefly/storage -type f -exec chmod 664 {} \;
mkdir -p /opt/firefly/storage/framework/{cache/data,sessions,views} mkdir -p /opt/firefly/storage/framework/{cache/data,sessions,views}
$STD sudo -u www-data php /opt/firefly/artisan cache:clear $STD sudo -u www-data php /opt/firefly/artisan cache:clear
cd /opt/firefly
$STD php artisan migrate --seed --force $STD php artisan migrate --seed --force
$STD php artisan cache:clear $STD php artisan cache:clear
$STD php artisan view:clear $STD php artisan view:clear

View File

@@ -40,24 +40,19 @@ function update_script() {
MM_DIR="/opt/mm" MM_DIR="/opt/mm"
export CONFIG_DIR="${MM_DIR}/config" export CONFIG_DIR="${MM_DIR}/config"
export FRONTEND_FILES_DIR="${MM_DIR}/web/build" export FRONTEND_FILES_DIR="${MM_DIR}/web/build"
export BASE_PATH=""
export PUBLIC_VERSION="" export PUBLIC_VERSION=""
export PUBLIC_API_URL="" export PUBLIC_API_URL=""
export BASE_PATH="/web"
cd /opt/mediamanager/web cd /opt/mediamanager/web
$STD npm ci --no-fund --no-audit $STD npm ci
$STD npm run build $STD npm run build
rm -rf "$FRONTEND_FILES_DIR"/build rm -rf "$FRONTEND_FILES_DIR"/build
cp -r build "$FRONTEND_FILES_DIR" cp -r build "$FRONTEND_FILES_DIR"
export BASE_PATH=""
export VIRTUAL_ENV="/opt/${MM_DIR}/venv" export VIRTUAL_ENV="/opt/${MM_DIR}/venv"
cd /opt/mediamanager cd /opt/mediamanager
rm -rf "$MM_DIR"/{media_manager,alembic*} rm -rf "$MM_DIR"/{media_manager,alembic*}
cp -r {media_manager,alembic*} "$MM_DIR" cp -r {media_manager,alembic*} "$MM_DIR"
$STD /usr/local/bin/uv sync --locked --active -n -p cpython3.13 --managed-python $STD /usr/local/bin/uv sync --locked --active -n -p cpython3.13 --managed-python
if ! grep -q "LOG_FILE" "$MM_DIR"/start.sh; then
sed -i "\|build\"$|a\export LOG_FILE=\"$CONFIG_DIR/media_manager.log\"" "$MM_DIR"/start.sh
fi
msg_ok "Updated $APP" msg_ok "Updated $APP"
msg_info "Starting Service" msg_info "Starting Service"

View File

@@ -76,4 +76,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}https://<YOUR_PANGOLIN_URL>${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3002${CL}"

View File

@@ -28,11 +28,6 @@ function update_script() {
exit exit
fi fi
if is_package_installed "aspnetcore-runtime-8.0"; then
$STD apt remove -y aspnetcore-runtime-8.0
$STD apt install -y aspnetcore-runtime-9.0
fi
RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+')
if [[ ! -f ~/.technitium || "${RELEASE}" != "$(cat ~/.technitium)" ]]; then if [[ ! -f ~/.technitium || "${RELEASE}" != "$(cat ~/.technitium)" ]]; then
msg_info "Updating Technitium DNS" msg_info "Updating Technitium DNS"

View File

@@ -8,7 +8,7 @@
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 443, "interface_port": 3002,
"documentation": "https://docs.pangolin.net/", "documentation": "https://docs.pangolin.net/",
"config_path": "/opt/pangolin/config/config.yml", "config_path": "/opt/pangolin/config/config.yml",
"website": "https://pangolin.net/", "website": "https://pangolin.net/",

View File

@@ -1,149 +1,4 @@
[ [
{
"name": "TechnitiumSoftware/DnsServer",
"version": "v14.0.0",
"date": "2025-11-08T10:34:10Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.4.5",
"date": "2025-11-08T10:24:28Z"
},
{
"name": "runtipi/runtipi",
"version": "v4.6.3",
"date": "2025-11-08T10:06:18Z"
},
{
"name": "fuma-nama/fumadocs",
"version": "fumadocs-openapi@10.0.2",
"date": "2025-11-08T09:58:09Z"
},
{
"name": "pommee/goaway",
"version": "v0.62.14",
"date": "2025-11-08T09:46:33Z"
},
{
"name": "pocketbase/pocketbase",
"version": "v0.32.0",
"date": "2025-11-08T09:36:27Z"
},
{
"name": "chrisvel/tududi",
"version": "v0.85.1",
"date": "2025-10-31T10:45:26Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.24.262",
"date": "2025-11-08T05:54:55Z"
},
{
"name": "documenso/documenso",
"version": "v2.0.5",
"date": "2025-11-08T05:03:59Z"
},
{
"name": "jeedom/core",
"version": "4.4.20",
"date": "2025-11-08T00:27:05Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.0.1",
"date": "2025-10-15T16:53:55Z"
},
{
"name": "keycloak/keycloak",
"version": "26.4.4",
"date": "2025-11-07T08:55:27Z"
},
{
"name": "home-assistant/core",
"version": "2025.11.1",
"date": "2025-11-07T21:32:26Z"
},
{
"name": "homarr-labs/homarr",
"version": "v1.43.2",
"date": "2025-11-07T19:16:41Z"
},
{
"name": "semaphoreui/semaphore",
"version": "v2.16.45",
"date": "2025-11-07T19:08:05Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.26.5",
"date": "2025-11-07T18:05:58Z"
},
{
"name": "cloudflare/cloudflared",
"version": "2025.11.1",
"date": "2025-11-07T17:05:45Z"
},
{
"name": "traefik/traefik",
"version": "v3.6.0",
"date": "2025-11-07T15:34:35Z"
},
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.35",
"date": "2025-11-07T14:35:24Z"
},
{
"name": "nzbgetcom/nzbget",
"version": "v25.4",
"date": "2025-10-09T10:27:01Z"
},
{
"name": "openobserve/openobserve",
"version": "v0.16.0",
"date": "2025-11-07T12:55:42Z"
},
{
"name": "n8n-io/n8n",
"version": "v1.0.0",
"date": "2025-11-07T12:52:42Z"
},
{
"name": "dgtlmoon/changedetection.io",
"version": "0.50.40",
"date": "2025-11-07T12:22:58Z"
},
{
"name": "element-hq/synapse",
"version": "v1.142.0rc2",
"date": "2025-11-04T16:22:11Z"
},
{
"name": "Paymenter/Paymenter",
"version": "v1.4.3",
"date": "2025-11-07T11:07:17Z"
},
{
"name": "wazuh/wazuh",
"version": "coverity-w45-4.14.1",
"date": "2025-11-05T16:56:57Z"
},
{
"name": "mattermost/mattermost",
"version": "v10.11.6",
"date": "2025-11-04T09:43:16Z"
},
{
"name": "umami-software/umami",
"version": "v3.0.0",
"date": "2025-11-07T06:13:49Z"
},
{
"name": "OliveTin/OliveTin",
"version": "3000.3.2",
"date": "2025-11-07T01:05:59Z"
},
{ {
"name": "FlowiseAI/Flowise", "name": "FlowiseAI/Flowise",
"version": "flowise@3.0.10", "version": "flowise@3.0.10",
@@ -154,6 +9,11 @@
"version": "v4.52.0", "version": "v4.52.0",
"date": "2025-11-06T22:39:26Z" "date": "2025-11-06T22:39:26Z"
}, },
{
"name": "rcourtman/Pulse",
"version": "v4.26.4",
"date": "2025-11-06T22:38:52Z"
},
{ {
"name": "open-webui/open-webui", "name": "open-webui/open-webui",
"version": "v0.6.36", "version": "v0.6.36",
@@ -174,6 +34,11 @@
"version": "mariadb-11.8.4", "version": "mariadb-11.8.4",
"date": "2025-11-06T17:24:30Z" "date": "2025-11-06T17:24:30Z"
}, },
{
"name": "chrisvel/tududi",
"version": "v0.85.1",
"date": "2025-10-31T10:45:26Z"
},
{ {
"name": "HabitRPG/habitica", "name": "HabitRPG/habitica",
"version": "v5.41.6", "version": "v5.41.6",
@@ -199,6 +64,21 @@
"version": "4.0.1-beta.1", "version": "4.0.1-beta.1",
"date": "2024-12-13T00:16:24Z" "date": "2024-12-13T00:16:24Z"
}, },
{
"name": "semaphoreui/semaphore",
"version": "v2.17.0-beta20",
"date": "2025-11-06T10:49:56Z"
},
{
"name": "keycloak/keycloak",
"version": "26.4.3",
"date": "2025-11-06T09:56:20Z"
},
{
"name": "OliveTin/OliveTin",
"version": "2025.11.06",
"date": "2025-11-06T08:45:02Z"
},
{ {
"name": "SigNoz/signoz", "name": "SigNoz/signoz",
"version": "v0.100.1", "version": "v0.100.1",
@@ -209,11 +89,21 @@
"version": "9.0.112", "version": "9.0.112",
"date": "2025-11-06T07:49:59Z" "date": "2025-11-06T07:49:59Z"
}, },
{
"name": "Jackett/Jackett",
"version": "v0.24.252",
"date": "2025-11-06T05:55:30Z"
},
{ {
"name": "Kozea/Radicale", "name": "Kozea/Radicale",
"version": "v3.5.8", "version": "v3.5.8",
"date": "2025-11-06T05:32:51Z" "date": "2025-11-06T05:32:51Z"
}, },
{
"name": "firefly-iii/firefly-iii",
"version": "v6.4.4",
"date": "2025-11-01T19:48:08Z"
},
{ {
"name": "apache/couchdb", "name": "apache/couchdb",
"version": "3.5.1-RC1", "version": "3.5.1-RC1",
@@ -224,6 +114,16 @@
"version": "v0.9.1", "version": "v0.9.1",
"date": "2025-11-06T02:26:53Z" "date": "2025-11-06T02:26:53Z"
}, },
{
"name": "jeedom/core",
"version": "4.4.20",
"date": "2025-11-06T00:27:04Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.0.1",
"date": "2025-10-15T16:53:55Z"
},
{ {
"name": "ollama/ollama", "name": "ollama/ollama",
"version": "v0.12.10", "version": "v0.12.10",
@@ -239,20 +139,40 @@
"version": "v1.79.1.dev6", "version": "v1.79.1.dev6",
"date": "2025-11-05T19:25:05Z" "date": "2025-11-05T19:25:05Z"
}, },
{
"name": "home-assistant/core",
"version": "2025.11.0",
"date": "2025-11-05T19:23:12Z"
},
{ {
"name": "leiweibau/Pi.Alert", "name": "leiweibau/Pi.Alert",
"version": "v2025-11-05", "version": "v2025-11-05",
"date": "2025-11-05T18:08:26Z" "date": "2025-11-05T18:08:26Z"
}, },
{
"name": "n8n-io/n8n",
"version": "n8n@1.118.2",
"date": "2025-11-05T18:07:04Z"
},
{ {
"name": "bunkerity/bunkerweb", "name": "bunkerity/bunkerweb",
"version": "v1.6.5", "version": "v1.6.5",
"date": "2025-10-06T15:25:17Z" "date": "2025-10-06T15:25:17Z"
}, },
{
"name": "wazuh/wazuh",
"version": "coverity-w45-4.14.1",
"date": "2025-11-05T16:56:57Z"
},
{
"name": "mattermost/mattermost",
"version": "v10.11.6",
"date": "2025-11-04T09:43:16Z"
},
{ {
"name": "javedh-dev/tracktor", "name": "javedh-dev/tracktor",
"version": "0.5.1", "version": "0.5.1",
"date": "2025-11-05T16:14:37Z" "date": "2025-11-05T15:51:02Z"
}, },
{ {
"name": "zitadel/zitadel", "name": "zitadel/zitadel",
@@ -344,6 +264,16 @@
"version": "v1.25.1", "version": "v1.25.1",
"date": "2025-11-04T20:01:09Z" "date": "2025-11-04T20:01:09Z"
}, },
{
"name": "runtipi/runtipi",
"version": "nightly",
"date": "2025-11-04T19:16:17Z"
},
{
"name": "element-hq/synapse",
"version": "v1.142.0rc2",
"date": "2025-11-04T16:22:11Z"
},
{ {
"name": "jhuckaby/Cronicle", "name": "jhuckaby/Cronicle",
"version": "v0.9.100", "version": "v0.9.100",
@@ -424,6 +354,16 @@
"version": "@jupyter-notebook/ui-components@7.5.0-rc.0", "version": "@jupyter-notebook/ui-components@7.5.0-rc.0",
"date": "2025-11-03T19:37:03Z" "date": "2025-11-03T19:37:03Z"
}, },
{
"name": "dgtlmoon/changedetection.io",
"version": "0.50.39",
"date": "2025-11-03T17:58:41Z"
},
{
"name": "cloudflare/cloudflared",
"version": "2025.10.1-3-g52809511",
"date": "2025-11-03T17:13:35Z"
},
{ {
"name": "goauthentik/authentik", "name": "goauthentik/authentik",
"version": "version/2025.10.1", "version": "version/2025.10.1",
@@ -434,11 +374,26 @@
"version": "v2.4.3", "version": "v2.4.3",
"date": "2025-11-03T16:49:03Z" "date": "2025-11-03T16:49:03Z"
}, },
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.34",
"date": "2025-11-03T16:42:07Z"
},
{
"name": "Paymenter/Paymenter",
"version": "v1.4.2",
"date": "2025-11-03T11:52:53Z"
},
{ {
"name": "silverbulletmd/silverbullet", "name": "silverbulletmd/silverbullet",
"version": "2.2.1", "version": "2.2.1",
"date": "2025-11-03T06:57:15Z" "date": "2025-11-03T06:57:15Z"
}, },
{
"name": "fuma-nama/fumadocs",
"version": "fumadocs-mdx@13.0.5",
"date": "2025-11-03T06:55:11Z"
},
{ {
"name": "jellyfin/jellyfin", "name": "jellyfin/jellyfin",
"version": "v10.11.2", "version": "v10.11.2",
@@ -489,11 +444,21 @@
"version": "v1.90.6", "version": "v1.90.6",
"date": "2025-10-31T22:24:04Z" "date": "2025-10-31T22:24:04Z"
}, },
{
"name": "homarr-labs/homarr",
"version": "v1.43.1",
"date": "2025-10-31T19:15:02Z"
},
{ {
"name": "mealie-recipes/mealie", "name": "mealie-recipes/mealie",
"version": "v3.4.0", "version": "v3.4.0",
"date": "2025-10-31T18:50:18Z" "date": "2025-10-31T18:50:18Z"
}, },
{
"name": "pommee/goaway",
"version": "v0.62.12",
"date": "2025-10-31T17:30:55Z"
},
{ {
"name": "zabbix/zabbix", "name": "zabbix/zabbix",
"version": "7.4.5", "version": "7.4.5",
@@ -564,6 +529,11 @@
"version": "v1.5.3", "version": "v1.5.3",
"date": "2025-09-20T12:12:33Z" "date": "2025-09-20T12:12:33Z"
}, },
{
"name": "documenso/documenso",
"version": "v1.13.2",
"date": "2025-10-30T04:12:40Z"
},
{ {
"name": "ipfs/kubo", "name": "ipfs/kubo",
"version": "v0.38.2", "version": "v0.38.2",
@@ -604,6 +574,11 @@
"version": "cassandra-5.0.6", "version": "cassandra-5.0.6",
"date": "2025-10-29T07:40:47Z" "date": "2025-10-29T07:40:47Z"
}, },
{
"name": "openobserve/openobserve",
"version": "v0.15.3",
"date": "2025-10-29T05:15:45Z"
},
{ {
"name": "outline/outline", "name": "outline/outline",
"version": "v1.0.1", "version": "v1.0.1",
@@ -634,11 +609,21 @@
"version": "2.0.2", "version": "2.0.2",
"date": "2025-10-28T15:51:35Z" "date": "2025-10-28T15:51:35Z"
}, },
{
"name": "traefik/traefik",
"version": "v3.5.4",
"date": "2025-10-28T11:09:25Z"
},
{ {
"name": "librespeed/speedtest-rust", "name": "librespeed/speedtest-rust",
"version": "v1.4.0", "version": "v1.4.0",
"date": "2025-10-28T15:11:12Z" "date": "2025-10-28T15:11:12Z"
}, },
{
"name": "nzbgetcom/nzbget",
"version": "v25.4",
"date": "2025-10-09T10:27:01Z"
},
{ {
"name": "thecfu/scraparr", "name": "thecfu/scraparr",
"version": "v3.0.0-beta.2", "version": "v3.0.0-beta.2",
@@ -699,6 +684,11 @@
"version": "v1.7.3", "version": "v1.7.3",
"date": "2025-10-24T10:51:12Z" "date": "2025-10-24T10:51:12Z"
}, },
{
"name": "pocketbase/pocketbase",
"version": "v0.31.0",
"date": "2025-10-24T04:07:27Z"
},
{ {
"name": "drakkan/sftpgo", "name": "drakkan/sftpgo",
"version": "v2.7.0", "version": "v2.7.0",
@@ -1254,6 +1244,11 @@
"version": "v0.58.0", "version": "v0.58.0",
"date": "2025-07-28T18:59:50Z" "date": "2025-07-28T18:59:50Z"
}, },
{
"name": "umami-software/umami",
"version": "v2.19.0",
"date": "2025-07-27T22:25:00Z"
},
{ {
"name": "PCJones/UmlautAdaptarr", "name": "PCJones/UmlautAdaptarr",
"version": "v0.7.3", "version": "v0.7.3",
@@ -1354,6 +1349,11 @@
"version": "2025-05-07-r1", "version": "2025-05-07-r1",
"date": "2025-05-07T12:18:42Z" "date": "2025-05-07T12:18:42Z"
}, },
{
"name": "TechnitiumSoftware/DnsServer",
"version": "v13.6.0",
"date": "2025-04-26T10:21:12Z"
},
{ {
"name": "dotnetfactory/fluid-calendar", "name": "dotnetfactory/fluid-calendar",
"version": "v1.4.0", "version": "v1.4.0",

View File

@@ -78,7 +78,6 @@ JWT_SECRET_KEY=$JWT_SECRET_KEY
NODE_ENV=production NODE_ENV=production
PORT=3333 PORT=3333
HOST=0.0.0.0 HOST=0.0.0.0
TZ=Etc/UTC
EOF EOF
if [[ -n "${COINGECKO_DEMO_KEY:-}" ]]; then if [[ -n "${COINGECKO_DEMO_KEY:-}" ]]; then

View File

@@ -45,15 +45,15 @@ MM_DIR="/opt/mm"
MEDIA_DIR="${MM_DIR}/media" MEDIA_DIR="${MM_DIR}/media"
export CONFIG_DIR="${MM_DIR}/config" export CONFIG_DIR="${MM_DIR}/config"
export FRONTEND_FILES_DIR="${MM_DIR}/web/build" export FRONTEND_FILES_DIR="${MM_DIR}/web/build"
export BASE_PATH=""
export PUBLIC_VERSION="" export PUBLIC_VERSION=""
export PUBLIC_API_URL="" export PUBLIC_API_URL=""
export BASE_PATH="/web" export BASE_PATH=""
cd /opt/mediamanager/web cd /opt/mediamanager/web
$STD npm ci --no-fund --no-audit $STD npm ci
$STD npm run build $STD npm run build
mkdir -p {"$MM_DIR"/web,"$MEDIA_DIR","$CONFIG_DIR"} mkdir -p {"$MM_DIR"/web,"$MEDIA_DIR","$CONFIG_DIR"}
cp -r build "$FRONTEND_FILES_DIR" cp -r build "$FRONTEND_FILES_DIR"
export BASE_PATH=""
export VIRTUAL_ENV="${MM_DIR}/venv" export VIRTUAL_ENV="${MM_DIR}/venv"
cd /opt/mediamanager cd /opt/mediamanager
cp -r {media_manager,alembic*} "$MM_DIR" cp -r {media_manager,alembic*} "$MM_DIR"
@@ -81,9 +81,8 @@ cat <<EOF >"$MM_DIR"/start.sh
export CONFIG_DIR="$CONFIG_DIR" export CONFIG_DIR="$CONFIG_DIR"
export FRONTEND_FILES_DIR="$FRONTEND_FILES_DIR" export FRONTEND_FILES_DIR="$FRONTEND_FILES_DIR"
export LOG_FILE="$CONFIG_DIR/media_manager.log"
export BASE_PATH="" export BASE_PATH=""
cd $MM_DIR cd "$MM_DIR"
source ./venv/bin/activate source ./venv/bin/activate
/usr/local/bin/uv run alembic upgrade head /usr/local/bin/uv run alembic upgrade head
/usr/local/bin/uv run fastapi run ./media_manager/main.py --port 8000 /usr/local/bin/uv run fastapi run ./media_manager/main.py --port 8000

View File

@@ -20,7 +20,13 @@ else
MONGO_VERSION="7.0" setup_mongodb MONGO_VERSION="7.0" setup_mongodb
fi fi
sed -i 's/bindIp: 127.0.0.1/bindIp: 0.0.0.0/' /etc/mongod.conf sed -i 's/bindIp: 127.0.0.1/bindIp: 0.0.0.0/' /etc/mongod.conf
msg_ok "Installed MongoDB $MONGO_VERSION"
motd_ssh motd_ssh
customize customize
cleanup_lxc
msg_info "Cleaning up"
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"

View File

@@ -22,16 +22,11 @@ msg_ok "Installed Dependencies"
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball"
fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_amd64" fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_amd64"
fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_amd64.tar.gz"
read -rp "${TAB3}Enter your Pangolin URL (ex: https://pangolin.example.com): " pango_url
read -rp "${TAB3}Enter your email address: " pango_email
msg_info "Setup Pangolin" msg_info "Setup Pangolin"
IP_ADDR=$(hostname -I | awk '{print $1}') IP_ADDR=$(hostname -I | awk '{print $1}')
SECRET_KEY=$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c 32) SECRET_KEY=$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c 32)
cd /opt/pangolin cd /opt/pangolin
mkdir -p /opt/pangolin/config/{traefik,db,letsencrypt,logs}
$STD npm ci $STD npm ci
$STD npm run set:sqlite $STD npm run set:sqlite
$STD npm run set:oss $STD npm run set:oss
@@ -51,129 +46,30 @@ mkdir -p /var/config
cat <<EOF >/opt/pangolin/config/config.yml cat <<EOF >/opt/pangolin/config/config.yml
app: app:
dashboard_url: "$pango_url" dashboard_url: http://$IP_ADDR:3002
log_level: debug
domains: domains:
domain1: domain1:
base_domain: "$pango_url" base_domain: example.com
cert_resolver: "letsencrypt"
server: server:
secret: "$SECRET_KEY" secret: $SECRET_KEY
gerbil: gerbil:
base_endpoint: "$pango_url" base_endpoint: example.com
orgs:
block_size: 24
subnet_group: 100.90.137.0/20
flags: flags:
require_email_verification: false require_email_verification: false
disable_signup_without_invite: false disable_signup_without_invite: true
disable_user_create_org: false disable_user_create_org: true
EOF allow_raw_resources: true
enable_integration_api: true
cat <<EOF >/opt/pangolin/config/traefik/traefik_config.yml enable_clients: true
api:
insecure: true
dashboard: true
providers:
http:
endpoint: "http://$IP_ADDR:3001/api/v1/traefik-config"
pollInterval: "5s"
file:
filename: "/opt/pangolin/config/traefik/dynamic_config.yml"
experimental:
plugins:
badger:
moduleName: "github.com/fosrl/badger"
version: "v1.2.0"
log:
level: "INFO"
format: "common"
certificatesResolvers:
letsencrypt:
acme:
httpChallenge:
entryPoint: web
email: $pango_email
storage: "/opt/pangolin/config/letsencrypt/acme.json"
caServer: "https://acme-v02.api.letsencrypt.org/directory"
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
transport:
respondingTimeouts:
readTimeout: "30m"
http:
tls:
certResolver: "letsencrypt"
serversTransport:
insecureSkipVerify: true
ping:
entryPoint: "web"
EOF
cat <<EOF >/opt/pangolin/config/traefik/dynamic_config.yml
http:
middlewares:
redirect-to-https:
redirectScheme:
scheme: https
routers:
# HTTP to HTTPS redirect router
main-app-router-redirect:
rule: "Host(\`$pango_url\`)"
service: next-service
entryPoints:
- web
middlewares:
- redirect-to-https
# Next.js router (handles everything except API and WebSocket paths)
next-router:
rule: "Host(\`$pango_url\`) && !PathPrefix(\`/api/v1\`)"
service: next-service
entryPoints:
- websecure
tls:
certResolver: letsencrypt
# API router (handles /api/v1 paths)
api-router:
rule: "Host(\`$pango_url\`) && PathPrefix(\`/api/v1\`)"
service: api-service
entryPoints:
- websecure
tls:
certResolver: letsencrypt
# WebSocket router
ws-router:
rule: "Host(\`$pango_url\`)"
service: api-service
entryPoints:
- websecure
tls:
certResolver: letsencrypt
services:
next-service:
loadBalancer:
servers:
- url: "http://$IP_ADDR:3002"
api-service:
loadBalancer:
servers:
- url: "http://$IP_ADDR:3000"
EOF EOF
$STD npm run db:sqlite:generate $STD npm run db:sqlite:generate
$STD npm run db:sqlite:push $STD npm run db:sqlite:push
@@ -226,21 +122,6 @@ RestartSec=10
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now gerbil systemctl enable -q --now gerbil
cat <<'EOF' >/etc/systemd/system/traefik.service
[Unit]
Description=Traefik is an open-source Edge Router that makes publishing your services a fun and easy experience
[Service]
Type=notify
ExecStart=/usr/bin/traefik --configFile=/opt/pangolin/config/traefik/traefik_config.yml
Restart=on-failure
ExecReload=/bin/kill -USR1 \$MAINPID
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now traefik
msg_ok "Created Services" msg_ok "Created Services"
motd_ssh motd_ssh

View File

@@ -18,7 +18,7 @@ curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-p
$STD dpkg -i packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb
rm -rf packages-microsoft-prod.deb rm -rf packages-microsoft-prod.deb
$STD apt update $STD apt update
$STD apt install -y aspnetcore-runtime-9.0 $STD apt install -y aspnetcore-runtime-8.0
msg_ok "Installed ASP.NET Core Runtime" msg_ok "Installed ASP.NET Core Runtime"
RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+')
@@ -26,7 +26,6 @@ msg_info "Installing Technitium DNS"
mkdir -p /opt/technitium/dns mkdir -p /opt/technitium/dns
curl -fsSL "https://download.technitium.com/dns/DnsServerPortable.tar.gz" -o /opt/DnsServerPortable.tar.gz curl -fsSL "https://download.technitium.com/dns/DnsServerPortable.tar.gz" -o /opt/DnsServerPortable.tar.gz
$STD tar zxvf /opt/DnsServerPortable.tar.gz -C /opt/technitium/dns/ $STD tar zxvf /opt/DnsServerPortable.tar.gz -C /opt/technitium/dns/
rm -f /opt/DnsServerPortable.tar.gz
echo "${RELEASE}" >~/.technitium echo "${RELEASE}" >~/.technitium
msg_ok "Installed Technitium DNS" msg_ok "Installed Technitium DNS"
@@ -37,4 +36,10 @@ msg_ok "Service created"
motd_ssh motd_ssh
customize customize
cleanup_lxc
msg_info "Cleaning up"
rm -f /opt/DnsServerPortable.tar.gz
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"

View File

@@ -427,12 +427,7 @@ manage_tool_repository() {
suite=$(get_fallback_suite "$distro_id" "$distro_codename" "$repo_url/$distro_id") suite=$(get_fallback_suite "$distro_id" "$distro_codename" "$repo_url/$distro_id")
# Setup new repository using deb822 format # Setup new repository using deb822 format
setup_deb822_repo \ setup_deb822_repo "mariadb" "$gpg_key_url" "$repo_url/$distro_id" "$suite" "main" "amd64 arm64" || return 1
"mariadb" \
"$gpg_key_url" \
"$repo_url/$distro_id" \
"$suite" \
"main"
return 0 return 0
;; ;;
@@ -509,7 +504,7 @@ Types: deb
URIs: ${repo_url} URIs: ${repo_url}
Suites: ${suite}/mongodb-org/${version} Suites: ${suite}/mongodb-org/${version}
Components: ${repo_component} Components: ${repo_component}
Architectures: $(dpkg --print-architecture) Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/mongodb-server-${version}.gpg Signed-By: /etc/apt/keyrings/mongodb-server-${version}.gpg
EOF EOF
return 0 return 0
@@ -541,7 +536,7 @@ Types: deb
URIs: $repo_url URIs: $repo_url
Suites: nodistro Suites: nodistro
Components: main Components: main
Architectures: $(dpkg --print-architecture) Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/nodesource.gpg Signed-By: /etc/apt/keyrings/nodesource.gpg
EOF EOF
return 0 return 0
@@ -575,7 +570,7 @@ Types: deb
URIs: https://packages.sury.org/php URIs: https://packages.sury.org/php
Suites: $distro_codename Suites: $distro_codename
Components: main Components: main
Architectures: $(dpkg --print-architecture) Architectures: amd64 arm64
Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg
EOF EOF
return 0 return 0
@@ -606,7 +601,7 @@ Types: deb
URIs: http://apt.postgresql.org/pub/repos/apt URIs: http://apt.postgresql.org/pub/repos/apt
Suites: $distro_codename-pgdg Suites: $distro_codename-pgdg
Components: main Components: main
Architectures: $(dpkg --print-architecture) Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/postgresql.gpg Signed-By: /etc/apt/keyrings/postgresql.gpg
EOF EOF
return 0 return 0
@@ -1198,8 +1193,8 @@ ensure_apt_working() {
} }
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Standardized deb822 repository setup (with optional Architectures) # Standardized deb822 repository setup
# Always runs apt update after repo creation to ensure package availability # Validates all parameters and fails safely if any are empty
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
setup_deb822_repo() { setup_deb822_repo() {
local name="$1" local name="$1"
@@ -1207,40 +1202,56 @@ setup_deb822_repo() {
local repo_url="$3" local repo_url="$3"
local suite="$4" local suite="$4"
local component="${5:-main}" local component="${5:-main}"
local architectures="${6-}" # optional local architectures="${6:-amd64 arm64}"
# Validate required parameters # Validate required parameters
if [[ -z "$name" || -z "$gpg_url" || -z "$repo_url" || -z "$suite" ]]; then if [[ -z "$name" || -z "$gpg_url" || -z "$repo_url" || -z "$suite" ]]; then
msg_error "setup_deb822_repo: missing required parameters (name=$name repo=$repo_url suite=$suite)" msg_error "setup_deb822_repo: missing required parameters (name=$name, gpg=$gpg_url, repo=$repo_url, suite=$suite)"
return 1 return 1
fi fi
# Cleanup # Cleanup old configs for this app
cleanup_old_repo_files "$name" cleanup_old_repo_files "$name"
# Cleanup any orphaned .sources files from other apps
cleanup_orphaned_sources cleanup_orphaned_sources
# Ensure keyring directory exists
mkdir -p /etc/apt/keyrings || { mkdir -p /etc/apt/keyrings || {
msg_error "Failed to create /etc/apt/keyrings" msg_error "Failed to create /etc/apt/keyrings directory"
return 1 return 1
} }
# Import GPG # Download GPG key (with --yes to avoid interactive prompts)
curl -fsSL "$gpg_url" | gpg --dearmor --yes -o "/etc/apt/keyrings/${name}.gpg" || { curl -fsSL "$gpg_url" | gpg --dearmor --yes -o "/etc/apt/keyrings/${name}.gpg" 2>/dev/null || {
msg_error "Failed to import GPG key for ${name}" msg_error "Failed to download or import GPG key for ${name} from $gpg_url"
return 1 return 1
} }
# Write deb822 # Create deb822 sources file
{ cat <<EOF >/etc/apt/sources.list.d/${name}.sources
echo "Types: deb" Types: deb
echo "URIs: $repo_url" URIs: $repo_url
echo "Suites: $suite" Suites: $suite
echo "Components: $component" Components: $component
[[ -n "$architectures" ]] && echo "Architectures: $architectures" Architectures: $architectures
echo "Signed-By: /etc/apt/keyrings/${name}.gpg" Signed-By: /etc/apt/keyrings/${name}.gpg
} >/etc/apt/sources.list.d/${name}.sources EOF
# Use cached apt update
local apt_cache_file="/var/cache/apt-update-timestamp"
local current_time=$(date +%s)
local last_update=0
if [[ -f "$apt_cache_file" ]]; then
last_update=$(cat "$apt_cache_file" 2>/dev/null || echo 0)
fi
# For repo changes, always update but respect short-term cache (30s)
if ((current_time - last_update > 30)); then
$STD apt update $STD apt update
echo "$current_time" >"$apt_cache_file"
fi
} }
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@@ -2769,7 +2780,8 @@ function setup_java() {
"https://packages.adoptium.net/artifactory/api/gpg/key/public" \ "https://packages.adoptium.net/artifactory/api/gpg/key/public" \
"https://packages.adoptium.net/artifactory/deb" \ "https://packages.adoptium.net/artifactory/deb" \
"$SUITE" \ "$SUITE" \
"main" "main" \
"amd64 arm64"
fi fi
# Get currently installed version # Get currently installed version
@@ -3221,12 +3233,12 @@ function setup_mysql() {
return 1 return 1
fi fi
cat >/etc/apt/sources.list.d/mysql.sources <<EOF cat >/etc/apt/sources.list.d/mysql.sources <<'EOF'
Types: deb Types: deb
URIs: https://repo.mysql.com/apt/debian/ URIs: https://repo.mysql.com/apt/debian/
Suites: bookworm Suites: bookworm
Components: mysql-8.4-lts Components: mysql-8.4-lts
Architectures: $(dpkg --print-architecture) Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/mysql.gpg Signed-By: /etc/apt/keyrings/mysql.gpg
EOF EOF
@@ -3734,7 +3746,8 @@ function setup_postgresql() {
"https://www.postgresql.org/media/keys/ACCC4CF8.asc" \ "https://www.postgresql.org/media/keys/ACCC4CF8.asc" \
"https://apt.postgresql.org/pub/repos/apt" \ "https://apt.postgresql.org/pub/repos/apt" \
"$SUITE" \ "$SUITE" \
"main" "main" \
"amd64 arm64"
if ! $STD apt update; then if ! $STD apt update; then
msg_error "APT update failed for PostgreSQL repository" msg_error "APT update failed for PostgreSQL repository"
@@ -4083,7 +4096,8 @@ function setup_clickhouse() {
"https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key" \ "https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key" \
"https://packages.clickhouse.com/deb" \ "https://packages.clickhouse.com/deb" \
"stable" \ "stable" \
"main" "main" \
"amd64 arm64"
# Install packages with retry logic # Install packages with retry logic
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive