13 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
670124b3b7 fix(k3s-vm): make k9s install non-fatal and separate from core customize 2026-04-24 11:34:35 +02:00
CanbiZ (MickLesk)
67f9570981 fix(k3s-vm): upload k9s archive into image during customize 2026-04-24 11:25:00 +02:00
CanbiZ (MickLesk)
4d18972eb4 fix(k3s-vm): make k9s install robust in virt-customize 2026-04-24 10:43:27 +02:00
CanbiZ (MickLesk)
25fb91e3eb Update k3s-vm.sh 2026-04-24 10:20:30 +02:00
CanbiZ (MickLesk)
ae51e1baed Update k3s-vm.sh 2026-04-24 10:07:26 +02:00
CanbiZ (MickLesk)
89095f3d5d trek: seed default admin, fix install and hooks
Seed a default admin account and harden the installer; update symlink behavior and LXC hook argument handling.

- Install: downgrade Node setup to 22, write ADMIN_EMAIL/ADMIN_PASSWORD into /opt/trek/server/.env for initial boot, chmod the file, wait for app health, then remove plaintext creds from the env and print the default admin credentials. Remove previous DB patching script and credentials file generation. Add health-check failure handling.
- ct/trek.sh: check for /opt/trek instead of ~/.trek, run npm ci without --production, and recreate server data/uploads by removing any existing dirs and creating explicit symlinks.
- Installer: mirror symlink strategy used in the container (rm then ln -s) and ensure generated ENCRYPTION_KEY note; add ADMIN_EMAIL default.
- json: set default username to admin@trek.local, update notes about seeded admin, ENCRYPTION_KEY storage, and APP_URL recommendation.
- tools/pve/lxc-prehook.sh: fix append_unique_line_in_ct to pass positional arguments into the bash -c snippet safely (avoid parent-shell expansion).

These changes ensure a reproducible default admin creation flow without leaving plaintext credentials, improve symlink handling, and fix a bug in the LXC prehook.
2026-04-24 09:52:03 +02:00
MickLesk
5ab302102b refactor: clean COMMUNITY_SCRIPTS_URL pattern (#1449)
- ct/vm scripts: split to 2-line pattern (variable + source)
- func files: remove redundant inline defaults
- Only entry points keep the default (ct/*.sh, vm/*.sh, build.func,
  install.func, alpine-install.func)
- Downstream sources use $COMMUNITY_SCRIPTS_URL without default
2026-02-22 14:43:08 +01:00
MickLesk
4b9121f41c feat: add configurable COMMUNITY_SCRIPTS_URL for dev sourcing (#1449)
- Replace all hardcoded source URLs with $COMMUNITY_SCRIPTS_URL variable
- Default: https://git.community-scripts.org/.../ProxmoxVED/raw/branch/main
- Override: export COMMUNITY_SCRIPTS_URL=https://.../your-fork/raw/branch/xyz
- Propagates into container via build.func exports
- Updated: 43 ct scripts, 14 deferred, 22 vm scripts, 5 func files
- Document in docs/DEV_MODE.md with usage examples
- Also normalizes legacy GitHub URLs to Gitea canonical URL
2026-02-22 14:36:31 +01:00
Tobias
5d7084c0bb chore: refactor update messages 2026-01-06 17:05:47 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
CanbiZ
30bbf007e8 Update k3s-vm.sh 2025-06-03 14:13:08 +02:00
CanbiZ
9af14b29c8 Update k3s-vm.sh 2025-06-03 14:12:57 +02:00
CanbiZ
e1734d8742 test 2025-06-03 14:04:41 +02:00