131 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
b2de843899 Merge pull request #1627 from heinemannj/pve-lxc-system-admin
Create pve-lxc-system-admin.sh
2026-06-05 15:09:25 +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
CanbiZ (MickLesk)
aa51e3c759 Update lxc-prehook.sh 2026-04-23 15:00:18 +02:00
CanbiZ (MickLesk)
61efd1b283 Update lxc-prehook.sh 2026-04-23 14:49:12 +02:00
CanbiZ (MickLesk)
8f985e40a4 add helpers 2026-04-23 14:21:43 +02:00
CanbiZ (MickLesk)
3226c331d0 Move Foldergram media dir; add batch CT creator
Change Foldergram installation to store media and config under /opt/foldergram_media (create media dir, write env file there, update systemd EnvironmentFile). Update ct/foldergram.sh to remove temporary backup/restore during updates. Update json/foldergram.json config_path and add an info note about where to place media. Add tools/pve/ct-batch-create.sh — a new Proxmox CT batch-creator script (interactive/unattended modes, caching, storage selection) to download and deploy multiple community-scripts CTs.
2026-04-21 09:12:10 +02:00
MickLesk
07f9bc23f8 fix crontab 2026-03-26 20:18:36 +01:00
CanbiZ (MickLesk)
441158b195 Standardize mirror messaging; simplify apt update
Replace inconsistent msg_info calls with msg_warn for mirror-list warnings and msg_custom for "Attempting mirror" lines to unify output formatting in misc/build.func and misc/install.func. Simplify tools/pve/update-lxcs-cron.sh by removing the long mirror-probing block and using a straightforward apt-get update + noninteractive dist-upgrade (and cleanup of EXTERNALLY-MANAGED) in containers to reduce complexity and improve maintainability.
2026-03-26 16:32:25 +01:00
CanbiZ (MickLesk)
1f2410e997 Add apt mirror fallback for Debian/Ubuntu
Enhance apt-get update handling for Debian/Ubuntu/Devuan containers by adding regional mirror lists and a fallback routine. The script now detects container timezone to prefer regional mirrors, builds a randomized candidate list, probes each mirror (timeout on TCP:80), rewrites /etc/apt/* sources to use a working mirror, and retries apt-get update until success. Keeps the existing non-interactive dist-upgrade and cleans up apt lists as before. This improves reliability of updates inside LXC containers when default mirrors are unreachable or misbehaving.
2026-03-26 15:23:50 +01:00
CanbiZ (MickLesk)
6d213d511f Simplify APT retry logic and add insecure fallback
Replace the previous multi-step APT retry sequence (mirror swaps, sleeps, multiple retries) with a simpler fallback: on apt-get update failure disable Acquire::By-Hash, enable Acquire::AllowInsecureRepositories and attempt updates/installs using --allow-insecure-repositories/--allow-unauthenticated where needed. Restore secure settings and refresh lists afterwards, and preserve/propagate the original command exit status. Apply the same simplification in misc/build.func, misc/install.func and the Proxmox LXC cron updater (tools/pve/update-lxcs-cron.sh) to handle Debian repo desyncs more reliably and reduce complex retry logic.
2026-03-26 14:02:09 +01:00
CanbiZ (MickLesk)
681c438e60 Show install summary and cron/config viewer
Display an installation summary (including downloaded script SHA256, source, install path, config, log file, and cron schedule) and make script review optional before install. Add an interactive View menu to inspect the installed worker script, cron configuration, or both; implement view_worker_script, view_cron_config (shows cron entry, human-readable schedule, config contents and excluded patterns, and log file size), and cron_to_human helper. Also update prompt wording and the View option description.
2026-03-26 13:59:12 +01:00
CanbiZ (MickLesk)
74a3be318f Update update-lxcs-cron.sh 2026-03-26 13:49:22 +01:00
CanbiZ (MickLesk)
d836402348 Add status/run/rotate options & improve updater
tools/pve/cron-update-lxcs.sh: add show_status, run_now and rotate_log functions; expose new menu options (Status, Run, Rotate) and enlarge menu. Consolidate license line formatting.

tools/pve/update-lxcs-cron.sh: tighten variable scoping, improve ostype detection and logging, add fallback for hostname, handle unknown OS types, harden apt workflow (retry with By-Hash workaround and refresh lists), skip template containers correctly, add error reporting on container updates, and use a timed shutdown. Update author/license header.

Overall: adds manual control and status/log rotation to the cron manager and makes the container updater more robust and safer for Debian/Ubuntu-based containers.
2026-03-26 13:45:02 +01:00
Joerg Heinemann
8a740a8876 Create pve-lxc-system-admin.sh
Initial commit
2026-03-26 10:29:40 +01:00
CanbiZ (MickLesk)
aacbe238ba Update cron-update-lxcs.sh 2026-03-12 14:06:07 +01:00
CanbiZ (MickLesk)
1cbc30e578 Switch repo URLs to raw.githubusercontent.com
Update script and license links to use GitHub raw URLs. Replace git.community-scripts.org references with https://raw.githubusercontent.com/... for script fetching and https://github.com/... for the LICENSE link in tools/pve/cron-update-lxcs.sh and tools/pve/update-lxcs-cron.sh so the curl examples and REPO_URL point to GitHub-hosted raw content.
2026-03-12 11:35:21 +01:00
CanbiZ (MickLesk)
73b8a02a8c Update update-lxcs-cron.sh 2026-03-12 11:31:59 +01:00
CanbiZ (MickLesk)
a6e0de632f cron 2026-03-12 11:27:07 +01:00
CanbiZ (MickLesk)
6c43b624c1 Enhance Proxmox dependency-check scripts
Update frontend docs and significantly refactor dependency-check tooling.

- frontend: set supported version to "PVE 8.x / 9.x" and add info about --install/--status/--uninstall flags.
- Add new tools/pve/dependency-check copy.sh (installer wrapper).
- Rework tools/pve/dependency-check.sh: add CLI (install/status/uninstall), PVE version detection/validation, improved logging/colors, safer config parsing, more robust storage checks, validated tag handling (dep_ping/dep_tcp), portable TCP/ping checks, and wait/timeout helper.
- Improve applicator script handling (ignore list, avoid overwriting other hookscripts), update systemd units (PathExistsGlob, unit binding), and implement uninstall to remove assignments and installed files.

These changes harden lifecycle management and make installation/cleanup and runtime checks more robust and observable.
2026-02-17 10:23:26 +01:00
CanbiZ (MickLesk)
35833c402a Update microcode.sh 2026-02-09 19:17:54 +01:00
CanbiZ (MickLesk)
5054d34a4a Create microcode.sh 2026-02-09 19:15:24 +01:00
CanbiZ (MickLesk)
66312f05d2 features 2026-01-26 14:56:55 +01:00
CanbiZ (MickLesk)
6aacad8e30 fixes 2026-01-26 14:54:24 +01:00
Tobias
7c27cceec6 some more copyright 2026-01-06 12:43:41 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
CanbiZ (MickLesk)
3f490abff1 Refactor OCI image handling in oci-deploy.sh 2025-12-29 17:35:10 +01:00
CanbiZ (MickLesk)
dae69a6690 Update oci-deploy.sh 2025-12-29 17:33:12 +01:00
CanbiZ (MickLesk)
ce1e3d76bf Refactor OCI deployment script for clarity and functionality
Refactor message functions and improve version checks.
2025-12-29 17:26:33 +01:00
CanbiZ (MickLesk)
513b096e6e Add OCI container deployment script for Proxmox VE
This script provides a deployment helper for OCI containers on Proxmox VE 9.1, including functions for checking Proxmox version, parsing image references, and deploying containers with customizable options.
2025-12-29 17:22:57 +01:00
CanbiZ
62aa06b343 typo 2025-10-03 09:32:41 +02:00
CanbiZ
d344dd18d2 try 2025-10-03 09:31:19 +02:00
CanbiZ
3826cb6540 Update post-pve-install.sh 2025-10-02 10:29:48 +02:00
CanbiZ
ef616ac29b Update post-pve-install.sh 2025-10-02 10:28:51 +02:00
CanbiZ
2855feedc4 Merge pull request #792 from kamushadenes/feat/dependency-check
feat: add dependency-check
2025-09-02 08:33:43 +02:00
CanbiZ
d4f43113f6 tt 2025-08-29 11:41:08 +02:00
Henrique Goncalves
3f102060c0 feat: add dependency-check 2025-08-20 21:06:59 -03:00
Arnaud
c7c5fa582c fix: use same -s operator as previous script instead of -f 2025-08-12 19:09:02 +00:00
Arnaud
919c509414 feat: remove nag for mobile version of pve
This commit removes the subscription nag for mobile version of pve.
Basically this script adds new javascript inside the head section of the html (could not make it work in body probably related to the template). Then it waits for page to load and when it loaded, everytime the body is changed, it tries to get the nag and click on close button so that it disappear. Once it found the nag it stops watching for new change in the body.
2025-08-12 19:09:02 +00:00
CanbiZ
91465ecd7f Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
320ecd3972 Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
cf94327787 Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
91ea3eb620 Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
ace869dc6f Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
453ac9f24e Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
41008b09fa Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
8496f217e3 Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
c6066d2755 Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
6ec661157e Update fstrim.sh 2025-08-08 07:05:17 +00:00
CanbiZ
c02014a162 FSTrim Refactor 2025-08-08 07:05:17 +00:00
CanbiZ
d23b38e672 Update post-pve-install.sh 2025-08-08 07:05:17 +00:00