Commit Graph

48 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
7b55c3f637 fix(ente): auto-fill ente account add with photos + /opt/ente_data/photos
Skip interactive prompts for app type and export directory by piping
defaults. Use /opt/ente_data/photos instead of /photos.
2026-03-30 08:39:01 +02:00
CanbiZ (MickLesk)
9de814e1d6 fix(ente): use LXC IP instead of localhost for MinIO S3 endpoints
Browser uploads fail with ERR_CONNECTION_REFUSED because Museum returns
presigned S3 URLs with localhost:3200 — unreachable from the user's PC.
Changed all three S3 bucket endpoints to use LOCAL_IP:3200.
2026-03-30 08:36:00 +02:00
CanbiZ (MickLesk)
022395a962 fix(ente): rewrite ente-setup to auto-extract OTT from logs
- Remove broken hardcoded-ott config (local-domain-suffix '@' never matches)
- ente-setup now guides through 4 steps: register, extract OTT from journalctl, admin whitelist, CLI+subscription
- Fallback: shows recent codes if auto-detect fails
- Update JSON notes to reference ente-setup instead of code 123456
2026-03-27 16:10:05 +01:00
CanbiZ (MickLesk)
93015c3b55 fix(ente): emails are encrypted in DB, query first user_id instead
Museum encrypts emails before storing (encrypted_email column).
Cannot query by plaintext email. Instead select the first user_id
which is the admin user created during first-start setup.
2026-03-27 16:02:02 +01:00
CanbiZ (MickLesk)
f3b9feba2a fix(ente): use TCP connection for psql in ente-setup
Peer authentication fails when running as root but connecting as
user 'ente'. Use PGPASSWORD with -h 127.0.0.1 to force TCP/password
authentication instead of Unix socket peer auth.
2026-03-27 16:00:30 +01:00
CanbiZ (MickLesk)
4eb9090ce5 fix(ente): add MinIO object storage for photo uploads
Museum requires an S3-compatible object storage backend for file
uploads. The install script had dummy S3 credentials pointing to
localhost:3200 but no service was running there, causing HTTP 500
on /files/upload-url.

- Install MinIO binary with random password
- Create required buckets (b2-eu-cen, wasabi-eu-central-2-v3, scw-eu-fr-v3)
- Configure museum.yaml with proper S3 credentials and bucket names
- MinIO runs on port 3200 (API) and 3201 (console)
2026-03-27 15:46:36 +01:00
CanbiZ (MickLesk)
d7bf4d51f1 feat(ente): automate first-start setup with ente-setup script
- Add hardcoded OTT (123456) for all emails in museum.yaml so users
  don't need to search logs for verification codes
- Replace separate helper scripts with single 'ente-setup' command
  that handles: admin whitelisting (user_id from DB), CLI account
  add, and subscription upgrade in one guided flow
- Simplify JSON notes to single first-start instruction
2026-03-27 15:44:00 +01:00
CanbiZ (MickLesk)
4fe1d95c81 fix(ente): auto-whitelist admin by user_id from database
The admin CLI requires the user to be whitelisted via their numeric
user_id in museum.yaml's internal.admin field. The helper script
ente-upgrade-subscription now:
1. Looks up user_id from PostgreSQL by email
2. Adds internal.admin to museum.yaml if not present
3. Restarts museum
4. Runs the subscription upgrade

This replaces the previous approach that incorrectly assumed the
first user was auto-admin (that fallback only works when internal
section is completely absent AND was unreliable).
2026-03-27 15:41:05 +01:00
CanbiZ (MickLesk)
dbabc9a1c2 fix(ente): remove explicit admins:[] from museum.yaml
The 'internal.admins' field expects user IDs, not emails. Setting it
to an empty array explicitly disables admin access. Without the field,
museum falls back to treating the first registered user as admin,
which is the correct behavior for self-hosted instances.
2026-03-27 15:38:07 +01:00
CanbiZ (MickLesk)
4b2c538ed9 fix(ente): add admin config section and fix CLI flags
- Add 'internal: admins: []' section to museum.yaml so admin CLI
  commands work after adding email to the list
- Fix --no-limit flag in helper script (requires 'True' argument)
- Add admin setup step to JSON first-start notes
2026-03-27 15:36:01 +01:00
CanbiZ (MickLesk)
3540b0ae90 fix(ente,garmin-grafana): resolve port conflict and credential piping
Ente: Remove circular Caddy :8080 reverse_proxy block that conflicted
with Museum binding to the same port. Museum serves directly on 8080.

Garmin-Grafana: Use GARMINCONNECT_EMAIL and GARMINCONNECT_BASE64_PASSWORD
env vars instead of broken heredoc stdin piping through timeout+uv run.
MFA code piped via stdin only when provided.
2026-03-27 14:54:58 +01:00
CanbiZ (MickLesk)
60965428ab Refactor multiple scripts: fix garmin-grafana unbound var, remove creds files, fix tor-snowflake user/sudo, fix ente source URL, fix oxicloud env sourcing, fix pixelfed creds footer 2026-03-27 14:32:27 +01:00
CanbiZ (MickLesk)
53c1ee08fc fix: comprehensive script audit - bug fixes and optimizations
- ct/invidious.sh: fix copy-paste bug (OxiCloud code in update block)
- install/invidious-install.sh: fix sed redirect, service filename mismatch
- ct/forgejo-runner.sh: fix binary download path, bump Debian to 13
- ct/authentik.sh: add -f flag to curl (fail on HTTP errors)
- ct/localagi.sh: add -f flag to curl, add installation check guard
- ct/ente.sh: fix broken install check (/var -> /opt/ente), apt-get -> apt
- ct/garmin-grafana.sh: add explicit tarball mode to fetch_and_deploy
- install/garmin-grafana-install.sh: fix local outside function, add tarball mode
- install/ente-install.sh: uncomment cleanup_lxc
- install/github-runner-install.sh: add missing , fix msg_info text
- ct/step-ca.sh: remove duplicate success message
- ct/devuan.sh, ct/ubuntu.sh: apt-get -> apt, remove duplicate msg_ok
2026-03-23 15:26:04 +01:00
CanbiZ (MickLesk)
7ab160ff75 gitea sync 2026-03-18 14:58:47 +01:00
CanbiZ (MickLesk)
c9d6f7ae55 Update ente-install.sh 2026-02-16 11:09:39 +01:00
CanbiZ (MickLesk)
ff1cb4e984 Remove unused import_local_ip calls from install scripts
Eliminated redundant or unused calls to import_local_ip across multiple install and update scripts to clean up the codebase. No functional changes were made to the installation or update processes.
2026-01-29 13:43:45 +01:00
MickLesk
0b01f9387d test without cleanup 2026-01-09 23:32:33 +01:00
MickLesk
cfbfe827f9 fix awk eof 2026-01-09 22:59:31 +01:00
MickLesk
c93788cf89 fix ente 2026-01-09 22:42:21 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
Raghav Vashisht
8e8e14dbd0 feat: suppress corepack download prompt 2025-11-23 21:55:12 +05:30
Raghav Vashisht
7f2bcf8543 fix: ente cli installation (again) 2025-11-23 21:33:18 +05:30
Raghav Vashisht
2a52360585 feat: export binaries and scripts in /usr/local/bin 2025-11-23 21:21:09 +05:30
Raghav Vashisht
5ebb77750a fix: cli install 2025-11-23 20:35:39 +05:30
Raghav Vashisht
42fbb303d0 fix: log 2025-11-23 19:30:14 +05:30
Raghav Vashisht
8a0f2cdeaf fix: ente-cli installation 2025-11-23 19:20:55 +05:30
Raghav Vashisht
bf38c3b919 fix: rename ente cli appName and dont delete the versioning file 2025-11-23 19:00:35 +05:30
Raghav Vashisht
d0846b5c3b fix: source bashrc after writing to it instead of exporting again in shell 2025-11-23 18:52:27 +05:30
Raghav Vashisht
755b17d5ec chore: rm comments 2025-11-23 18:47:48 +05:30
Raghav Vashisht
4509406b0c fix: each msg_info must have msg_ok 2025-11-23 18:45:07 +05:30
Raghav Vashisht
fb84ff1110 fix: dont save NEXT vars in bashrc, add url prompt in rebuild script 2025-11-23 18:35:07 +05:30
Raghav Vashisht
06c6536699 Merge branch 'main' into dramikei/ente-enhancement 2025-11-23 18:16:20 +05:30
Raghav Vashisht
3489dfb893 chore: clean logs 2025-11-22 22:04:50 +05:30
CanbiZ
1c14bbe7c7 Refactor Ente CLI installation and cleanup steps
Moved Ente CLI installation to use fetch_and_deploy_gh_release for consistency and removed the previous manual installation block. Also updated cleanup commands to use 'apt' instead of 'apt-get'.
2025-10-27 12:04:44 +01:00
CanbiZ
f849b4996a Update ente-install.sh 2025-10-27 10:47:01 +01:00
CanbiZ
11f786366d Enhance Ente install script with automation and helpers
Adds installation of curl, jq, and the Ente CLI, automates frontend builds with dynamic IP detection, and generates a rebuild script for frontend updates if the IP changes. Updates configuration files to use the container IP, improves post-installation instructions, and creates helper scripts for email verification and subscription upgrades. Also enhances Caddy configuration with CORS headers and provides a detailed final setup summary for easier onboarding.
2025-10-27 10:35:29 +01:00
Raghav Vashisht
a4d5b5a21f fix(ente): remove unexpected .ente txt file being created during installation 2025-10-26 17:19:44 +05:30
Raghav Vashisht
eb401a3e42 fix(ente): errors 2025-10-26 17:07:45 +05:30
Raghav Vashisht
9ee64e97f1 fix(ente): cli config.yml creation error 2025-10-26 16:57:12 +05:30
Raghav Vashisht
bd25fb79dd feat(ente): install and configure ente cli, dynamically export backend urls for frontend 2025-10-26 16:19:38 +05:30
CanbiZ
4ac0db3dc2 Update Node.js version and improve MySQL setup for Debian
Bumps Node.js version from 22 to 24 in ente-install.sh. Enhances MySQL setup in tools.func to explicitly block installation on Debian Trixie/forky/sid due to incompatibility, providing alternative solutions and clearer messaging.
2025-10-21 09:46:00 +02:00
CanbiZ
b840a8aa32 Replace init_error_traps with catch_errors in scripts
Replaces all occurrences of the 'init_error_traps' function with 'catch_errors' across container and install scripts for consistency in error handling. Also adjusts indentation and formatting in some scripts for improved readability.
2025-09-19 08:53:49 +02:00
CanbiZ
eed916b6cc test 2025-09-15 15:38:03 +02:00
CanbiZ
7624e540e4 Update ente-install.sh 2025-08-18 13:33:14 +02:00
CanbiZ
89e7dd5e51 add gcc 2025-08-18 12:06:50 +02:00
CanbiZ
d6aa91c7aa Update ente-install.sh 2025-08-18 11:50:41 +02:00
CanbiZ
8adac20faa fix libsodium 2025-08-18 11:40:53 +02:00
CanbiZ
6027454304 ente 2025-08-18 11:35:50 +02:00