From 5adf52eacf582c51e56e2a5923d5e6f7a9a5e6cd Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Fri, 16 Jan 2026 14:25:25 +0100 Subject: [PATCH 1/3] trip --- ct/trip.sh | 10 +++++----- frontend/public/json/trip.json | 4 ++-- install/trip-install.sh | 14 ++++++++++++-- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/ct/trip.sh b/ct/trip.sh index b06aa1b86..dc0e07a85 100644 --- a/ct/trip.sh +++ b/ct/trip.sh @@ -34,8 +34,8 @@ function update_script() { msg_ok "Stopped Service" msg_info "Backing up Configuration" - cp -r /opt/trip/.env /opt/trip.env.bak 2>/dev/null || true - cp -r /opt/trip/data /opt/trip_data_backup 2>/dev/null || true + cp /opt/trip.env /opt/trip.env.bak + cp -r /opt/trip_storage /opt/trip_storage_backup msg_ok "Backed up Configuration" fetch_and_deploy_gh_release "trip" "itskovacs/TRIP" @@ -53,10 +53,10 @@ function update_script() { msg_ok "Updated Backend" msg_info "Restoring Configuration" - cp /opt/trip.env.bak /opt/trip/.env 2>/dev/null || true - cp -r /opt/trip_data_backup/. /opt/trip/data 2>/dev/null || true + cp /opt/trip.env.bak /opt/trip.env + cp -r /opt/trip_storage_backup/. /opt/trip_storage rm -f /opt/trip.env.bak - rm -rf /opt/trip_data_backup + rm -rf /opt/trip_storage_backup msg_ok "Restored Configuration" msg_info "Starting Service" diff --git a/frontend/public/json/trip.json b/frontend/public/json/trip.json index 1b28a5d9f..30f7dfa82 100644 --- a/frontend/public/json/trip.json +++ b/frontend/public/json/trip.json @@ -9,10 +9,10 @@ "updateable": true, "privileged": false, "interface_port": 8000, - "documentation": "https://github.com/itskovacs/TRIP", + "documentation": "https://itskovacs.github.io/trip/docs/getting-started/configuration/", "website": "https://github.com/itskovacs/TRIP", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/trip.webp", - "config_path": "/opt/trip/.env", + "config_path": "/opt/trip.env", "description": "Minimalist POI Map Tracker and Trip Planner. Self-hosted.", "install_methods": [ { diff --git a/install/trip-install.sh b/install/trip-install.sh index b4d2f8acf..279f9b1ae 100644 --- a/install/trip-install.sh +++ b/install/trip-install.sh @@ -37,7 +37,17 @@ msg_ok "Set up Backend" msg_info "Configuring Application" mkdir -p /opt/trip/frontend cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/ -mkdir -p /opt/trip/data +mkdir -p /opt/trip_storage/{attachments,backups,assets} + +cat </opt/trip.env +# TRIP Configuration +# https://itskovacs.github.io/trip/docs/getting-started/configuration/ +ATTACHMENTS_FOLDER=/opt/trip_storage/attachments +BACKUPS_FOLDER=/opt/trip_storage/backups +ASSETS_FOLDER=/opt/trip_storage/assets +FRONTEND_FOLDER=/opt/trip/frontend +SQLITE_FILE=/opt/trip_storage/trip.sqlite +EOF msg_ok "Configured Application" msg_info "Creating Service" @@ -49,7 +59,7 @@ After=network.target [Service] Type=simple WorkingDirectory=/opt/trip/backend -Environment="PYTHONPATH=/opt/trip/backend" +EnvironmentFile=/opt/trip.env ExecStart=/opt/trip/.venv/bin/fastapi run /opt/trip/backend/trip/main.py --host 0.0.0.0 --port 8000 Restart=on-failure RestartSec=5 From f3d8f474ea932d6b12a100c514b9fdf20441d5f9 Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Fri, 16 Jan 2026 14:26:13 +0100 Subject: [PATCH 2/3] trip --- frontend/public/json/trip.json | 66 +++++++++++++++++----------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/frontend/public/json/trip.json b/frontend/public/json/trip.json index 30f7dfa82..5169b0852 100644 --- a/frontend/public/json/trip.json +++ b/frontend/public/json/trip.json @@ -1,35 +1,35 @@ { - "name": "TRIP", - "slug": "trip", - "categories": [ - 21 - ], - "date_created": "2026-01-16", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 8000, - "documentation": "https://itskovacs.github.io/trip/docs/getting-started/configuration/", - "website": "https://github.com/itskovacs/TRIP", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/trip.webp", - "config_path": "/opt/trip.env", - "description": "Minimalist POI Map Tracker and Trip Planner. Self-hosted.", - "install_methods": [ - { - "type": "default", - "script": "ct/trip.sh", - "resources": { - "cpu": 1, - "ram": 1024, - "hdd": 4, - "os": "debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] + "name": "TRIP", + "slug": "trip", + "categories": [ + 21 + ], + "date_created": "2026-01-16", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8000, + "documentation": "https://itskovacs.github.io/trip/docs/intro", + "website": "https://github.com/itskovacs/TRIP", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/trip.webp", + "config_path": "/opt/trip.env", + "description": "Minimalist POI Map Tracker and Trip Planner. Self-hosted.", + "install_methods": [ + { + "type": "default", + "script": "ct/trip.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] } From 32fac05edd2a63783c82ac40b6b3f5aaf9c3892f Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Fri, 16 Jan 2026 14:27:18 +0100 Subject: [PATCH 3/3] trip --- ct/trip.sh | 2 +- install/trip-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/trip.sh b/ct/trip.sh index dc0e07a85..d166e6009 100644 --- a/ct/trip.sh +++ b/ct/trip.sh @@ -49,7 +49,7 @@ function update_script() { msg_info "Updating Backend" cd /opt/trip/backend - $STD /opt/trip/.venv/bin/pip install --no-cache-dir -r trip/requirements.txt + $STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt msg_ok "Updated Backend" msg_info "Restoring Configuration" diff --git a/install/trip-install.sh b/install/trip-install.sh index 279f9b1ae..d95728327 100644 --- a/install/trip-install.sh +++ b/install/trip-install.sh @@ -31,7 +31,7 @@ msg_ok "Built Frontend" msg_info "Setting up Backend" cd /opt/trip/backend $STD uv venv /opt/trip/.venv -$STD /opt/trip/.venv/bin/pip install --no-cache-dir -r trip/requirements.txt +$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt msg_ok "Set up Backend" msg_info "Configuring Application"