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
2026-04-22 08:14:01 +02:00
2025-12-08 09:17:21 +01:00
2025-07-14 15:04:29 +00:00
2025-04-28 09:29:12 +02:00
2025-03-03 10:10:57 +01:00
2025-03-03 10:10:57 +01:00

🚧 ProxmoxVED Helper-Scripts (Development Repository)

Warning: This repository is under active development and is not intended for production use. Changes may occur at any time!


🔧 What is this?

This repository contains a collection of scripts for managing and automating Proxmox Virtual Environment (Proxmox VE). Originally created by tteck, the project is now community-driven and continues to evolve.


Want to help?

Follow here to see our Documentations.


🚀 Development Status

  • ⚠️ Unstable: Features may be incomplete or subject to change.
  • 📢 Community-driven: Contributions and feedback are welcome.
  • 🔄 Frequent updates: Active development means rapid iterations and fixes.

💬 Get Involved

Join the discussion, contribute code, or report issues:

📜 License

This project is licensed under the MIT License.



Proxmox® is a registered trademark of Proxmox Server Solutions GmbH.

Description
No description provided
Readme 18 MiB
Languages
Shell 100%