Commit Graph

201 Commits

Author SHA1 Message Date
MickLesk fc21e2c458 fix shellcheck 2026-08-01 23:13:43 +02:00
MickLesk 7b7d5c4fdc refactor: enhance error handling and messaging in all-templates script 2026-08-01 23:08:54 +02:00
MickLesk e028f3eb1b refactor: harmonize error handling and messaging in add-netbird-lxc and add-tailscale-lxc scripts 2026-08-01 23:04:53 +02:00
MickLesk 308ef17283 refactor: harmonize architecture detection and improve installation scripts for addons 2026-08-01 22:54:09 +02:00
MickLesk 0fb07d03e7 filebrowser-quantum: generate TMP_BIN via mktemp at use, not fixed PID-based path 2026-08-01 22:37:50 +02:00
MickLesk 084706a3d5 use create_backup und restore_backup 2026-08-01 22:35:32 +02:00
MickLesk cb58c616f7 refactor: coder-code-server GH-release binary install + multiline apt installs
- coder-code-server.sh: use fetch_and_deploy_gh_release (binary mode) + check_for_gh_release, add uninstall/update functions, update script + type=update handling
- copyparty.sh, filebrowser.sh, filebrowser-quantum.sh: format multi-package installs multiline
2026-08-01 22:29:20 +02:00
MickLesk 89e43f2753 add updater for olivetin 2026-08-01 22:26:05 +02:00
MickLesk 63434d9a0f refactor olivetin 2026-08-01 22:24:43 +02:00
MickLesk 7373c26b7f refactor olivethin 2026-08-01 22:21:45 +02:00
MickLesk d5d336698e switch to apt from apt-get 2026-08-01 22:20:27 +02:00
MickLesk a686666abd adguard use ip function 2026-08-01 22:16:10 +02:00
MickLesk bedc73a049 switch to apt in coder 2026-08-01 22:15:29 +02:00
MickLesk 92b7155ff9 refactor: complete addon harmonization (filebrowser-quantum, glances, olivetin, phpmyadmin, coder-code-server polish)
- Remove local get_lxc_ip() shadow in glances.sh, use core.func version
- Fix double header_info() call in olivetin.sh with _HEADER_SHOWN reset
- Add core.func/tools.func/error_handler.func sourcing to phpmyadmin.sh
- Replace unsafe hostname -I fallback with get_lxc_ip everywhere
- Use $STD for command execution and shared msg_info/msg_ok/msg_error/msg_warn
- All files verified clean via shellcheck (only expected SC1090 noise)
2026-08-01 22:06:30 +02:00
MickLesk 5356ce7dcc refactor coder-code crowdsec filebrowser 2026-08-01 21:59:28 +02:00
MickLesk 566cbf736d harmonize headers 2026-08-01 21:53:45 +02:00
Tobias 645f6a2d9a fix: prometheus-paperless-exporter incompatibility with paperless v3 (#16119)
* fix: compatibility in paperless v3 (https://github.com/hansmi/prometheus-paperless-exporter/issues/134)

* rm: comments

* fix: revert func
2026-07-29 09:29:16 +10:00
community-scripts-pr-app[bot] 57e02eee1b Update .app files (#16114)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2026-07-28 13:38:55 +02:00
push-app-to-main[bot] db18c72bd8 Add actual-budget-prometheus-exporter (addon) (#16109)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-07-28 12:29:40 +02:00
Marco C. d325c03944 Improve command description for disabling pve-enterprise repo (#16020)
The "disable" option description stated "Comment out (disable) this repo" but the implementation uses `Enabled: false` (deb822 format) instead of commenting. Update description to better reflect the action.
2026-07-26 18:51:33 +02:00
CanbiZ (MickLesk) 3a7305a8cf pve-tool: storage share helper script for Proxmox (#15869)
* pve-tool: storage share helper script for Proxmox

This script provides a menu-driven interface for managing various storage types in Proxmox, including SMB, NFS, and iSCSI. It includes functions for testing mounts, adding storage, and managing LXC mountpoints.

* bump function call

* add dynamic whiptail (feedback from #15882)

* broken whiptail in menu 4

* fix ui bug, more space for container names

* fix whiptail pick mountpoint

* Allow removing multiple LXC mountpoints

Update `remove_lxc_mountpoint` in `storage-share-helper.sh` to support multi-select mountpoint removal for a container. Each selected mountpoint is now confirmed individually (default No), processed independently, and reported in a final result summary with `removed`, `FAILED`, or `skipped` status.

* stupid whiptail.. now done

* Update storage-share-helper.sh
2026-07-22 14:03:09 +02:00
Sir106 7f1b0ead93 [tools.update-lxcs] feat: optional reporting success/failures to heathchecks.io (or others) (#15701)
* feat: add  task monitoring option via  e.g. healthchecks.io. To be configured via PING variable in config file.

* attach logfile on failure to healthcheck.io message

* fixed error status when updating lxc even if finished successful

---------

Co-authored-by: Sir106 <sir106@id-e.de>
2026-07-18 22:19:31 +02:00
soupy-boy 8655282c2d autoremove and autoclean after apt full-upgrade (#15831) 2026-07-17 08:43:05 +02:00
Ángel Oreste 6ad04d8b19 Removed deprecated parameter in Filebrowser Quantum configuration (#15573) 2026-07-03 18:09:41 +02:00
Alexander Georgievskiy 7450c1ef03 [tools/pve/*.sh] https://download.proxmox.com -> http://download.proxmox.com (PVE8 Only) (#15498) 2026-06-30 16:00:08 +02:00
CanbiZ (MickLesk) b5361e5278 tool: add disk-health tool (SMART + NVMe) (#15417) 2026-06-27 23:27:43 +02:00
CanbiZ (MickLesk) ba31c925e3 Validate kernel selection input in kernel-clean (#15414)
- Trim whitespace, skip empty tokens and reject non-numeric input so a
  malformed selection no longer feeds garbage into `sed -n "<index>p"`.
- Reject reversed ranges (start greater than end) with a clear message.
- Replace `grep | wc -l` with `grep -c` (ShellCheck SC2126).
2026-06-26 21:56:28 +02:00
CanbiZ (MickLesk) 868b405082 Fix clean-lxcs exclude matching and set -e cancel handling (#15413)
- Replace the array-style exclude check (`${excluded_containers[@]}` on a
  plain string) with an explicit per-VMID loop, resolving the ShellCheck
  SC2199/SC2076 errors and avoiding accidental substring matches.
- Abort cleanly when the checklist dialog is cancelled instead of relying
  on an unreachable `$?` test under `set -eEuo pipefail`.
- Exit gracefully on a declined confirmation prompt.
- Use `pct exec ... -- hostname` for consistent argument handling.
2026-06-26 21:56:23 +02:00
CanbiZ (MickLesk) 58145d5bd3 Harden microcode download/install in microcode and pbs-microcode (#15415)
- AMD: download directly to "$microcode" instead of a convoluted, unquoted
  basename of the full URL (fixes ShellCheck SC2046) and pin to https.
- Quote dpkg install and cleanup paths (SC2086) and use rm -f.
- Normalize the Debian pool URLs (drop the stray double/triple slashes).
- Define color variables directly instead of via $(echo ...) (SC2116/SC2028).
2026-06-26 21:56:00 +02:00
CanbiZ (MickLesk) 9fbe2de1cb Refactor: reduce IP-Tag resource usage and clean up ShellCheck findings (#15418)
* Reduce IP-Tag resource usage and clean up ShellCheck findings

Performance / resource fixes in the generated service:
- VM IP detection only queries the QEMU guest agent when it is actually
  enabled in the VM config. Previously every VM without an agent stalled
  the loop for the full `qm guest cmd` timeout on each cycle; the timeout
  is also lowered from 8s to 5s.
- Skip the ARP/ping fallback for VMs entirely when the guest agent already
  returned addresses, avoiding needless ping probes every run.
- Snapshot `ip neighbor show` once per host instead of invoking it per MAC
  in the VM and LXC lookups.
- Lower ping verification to a 1s timeout (`-W 1`).

ShellCheck cleanup in the installer:
- Define color variables directly instead of via $(echo ...) (SC2116/SC2028).
- Use `read -rp` everywhere (SC2162).
- Replace Unicode quotes with ASCII in a status message (SC1111).

* Cut IP-Tag CPU usage by avoiding per-guest pct/qm status calls

The periodic check spawned one `pct status` per container and one
`qm status` per VM each cycle. Both are heavy Perl tools (~hundreds of ms
CPU per invocation), so on hosts with many guests the 5-minute run caused
a noticeable CPU spike.

- Derive LXC status from the single `pct list` call that is already made
  for enumeration.
- Add one `qm list` call to collect all VM statuses at once.
- Store both in a per-cycle STATUS_CACHE and read from it instead of
  calling `pct status` / `qm status` per guest (with a fallback for direct
  calls outside the cycle).
2026-06-26 21:55:53 +02:00
CanbiZ (MickLesk) 0774772b87 QoL: scaling-governor extend selection and guard missing cpufreq (#15416) 2026-06-26 21:53:22 +02:00
Sam Heinz a1c7097ef5 [arm64] port pve scripts to support arm64 (#15288) 2026-06-23 13:49:52 +02:00
CanbiZ (MickLesk) 1cdf74dd41 update-apps: sanitize service detection and fail on invalid names (#15318) 2026-06-22 21:59:43 +02:00
CanbiZ (MickLesk) 5169c61968 immich public proxy: replace npm install with npm ci for consistent dependency installation (#15166) 2026-06-17 15:34:27 +02:00
CanbiZ (MickLesk) 3f619e4286 security: Fix HTTP to HTTPS for all package and repository downloads (#15009)
Co-authored-by: Security Fix <security@community-scripts.org>
2026-06-08 22:28:40 +02:00
CanbiZ (MickLesk) 0f37e30f28 security: Fix MITM RCE vulnerability in microcode scripts (CVE) (#15007)
Co-authored-by: Security Fix <security@community-scripts.org>
2026-06-08 22:28:17 +02:00
CanbiZ (MickLesk) 203131d042 PBS4-Upgrade: update current PBS3 packages before switching to Trixie repos (#14815) 2026-05-31 22:04:14 +02:00
CanbiZ (MickLesk) 48b34d4c2e fix(add-iptag): use qm set for VM tags to handle snapshot sections correctly (#14713) 2026-05-26 08:03:57 +02:00
CanbiZ (MickLesk) 9aa76e8ea4 fix(netdata): extend PVE version support to 9.x (#14714) 2026-05-26 08:03:43 +02:00
CanbiZ (MickLesk) 514fece0df Kernel-Clean: detect meta-packages and fix silent removal failures (#14674) 2026-05-25 08:49:25 +02:00
Claudiu Hojda 26b1adfbcc kernel-clean: support range syntax in selection prompt (#14656)
Allow selecting kernels with ranges (e.g. 1-5) and mixed
expressions (e.g. 1,3-5,7) in addition to the existing
comma-separated syntax.
2026-05-23 09:59:17 +02:00
CanbiZ (MickLesk) 1cdfdea583 Proxmox VE 9.2 support (#14624) 2026-05-21 19:04:47 +02:00
CanbiZ (MickLesk) b15e84e2ba Cronmaster: fix unexpected EOF in update_cronmaster script (#14420)
The heredoc used <<EOF (unquoted), causing the \ inside it
to be executed during installation. This embedded the entire cronmaster.sh
source (~250 lines) into the update script, which contained backtick-style
constructs that caused 'unexpected EOF while looking for matching backtick'
at line 44 when the update script was later run.

Use <<'EOF' so the literal \ text is written to the file.
2026-05-11 22:03:46 +02:00
Tobias e05f2d94b4 fix: qbittorrent-exporter for 5.2 (#14403)
* fix: qbittorrent-exporter for 5.2

* Adjust API key input prompt indentation

* fix: tabs
2026-05-11 20:25:20 +02:00
CanbiZ (MickLesk) ebaa526560 core: support optional POST_INSTALL_SCRIPT (var_post_install_script) hook (#14160) 2026-05-11 15:54:38 +02:00
CanbiZ (MickLesk) 3c02868add update-apps: some improvements (#14275)
* feat(update-apps): add var_continue_on_error and TERM=dumb fix

- Add var_continue_on_error=yes to skip failed containers instead
  of aborting all remaining updates. Useful for cron/unattended runs
  where one disabled or broken script should not stop others.
  Containers with backup still attempt restore on failure regardless.

- Set TERM=dumb when running pct exec to prevent whiptail from
  hanging when no TTY is available (e.g. cron jobs redirecting
  stdout/stderr). This causes whiptail to fail-fast instead of
  blocking indefinitely.

- Add var_continue_on_error to export_config_json, --help output,
  and usage examples (cron-style invocation example added).

* feat(update-apps): add var_dry_run to check updates without applying

Adds dry-run mode (var_dry_run=yes) that reports available updates for
all selected containers without modifying anything:

- Extracts GitHub source repo from the ct script header (# Source:)
- Resolves the version file name from check_for_gh_release app arg
- Reads current installed version from ~/.appname inside the container
- Queries GitHub API /releases/latest for comparison
- Outputs color-coded status: up-to-date (green), update available (yellow),
  or unknown (blue/yellow with reason)

Non-GitHub sources (Codeberg, custom URLs) are skipped with a notice.
Resource scaling is suppressed entirely during dry-run.

Example usage:
  var_container=all_running var_skip_confirm=yes var_dry_run=yes \
    bash -c "$(curl -fsSL .../update-apps.sh)"

* fix(update-apps): dry-run uses check_for_gh_release args, not Source header

The # Source: header can point to a different repo than what
check_for_gh_release actually queries (e.g. RustDesk uses
lejianwen fork, not official rustdesk repo).

Now parse both app name and source repo directly from the
check_for_gh_release call in the ct script:
  check_for_gh_release "appname" "owner/repo"

Also fix $HOME/.appname path expansion in pct exec context.

* fix issue on clear()

* feat(update-apps): add no-op clear wrapper to PATH for update scripts

Co-authored-by: Copilot <copilot@github.com>

* feat(update-apps): enhance error handling for unattended mode in resource checks

Co-authored-by: Copilot <copilot@github.com>

* feat(update-apps): implement structured logging and summary report for updates

Co-authored-by: Copilot <copilot@github.com>

* fix log issue

Co-authored-by: Copilot <copilot@github.com>

* feat(update-apps): enhance dry-run functionality and logging for container updates

Co-authored-by: Copilot <copilot@github.com>

* feat(update-apps): add dry-run completion message for better user feedback

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-07 15:53:22 +02:00
CanbiZ (MickLesk) 50b3c3ae7f fix(adguardhome-sync): replace ifconfig with hostname -I for IP detection (#14273)
ifconfig is not available on modern Debian systems (net-tools not
installed by default). Replace with hostname -I which is available
everywhere, with ip addr as fallback.

Fixes: #14257
2026-05-06 13:10:58 +02:00
Donovan 4e9352572f Fix container count message in update-apps.sh (#14265)
Trivial update that corrects displayed container count by dividing by 3 (pct list displays 3 columns for each container)
2026-05-05 21:05:31 +02:00
CanbiZ (MickLesk) 683231127c fix(pbs/pve): guard sed against missing /etc/apt/sources.list (#14222) 2026-05-03 22:29:40 +02:00
CanbiZ (MickLesk) c9da2daec2 alpine-docker: install openssl as core dependency | alpine-komodo: check & install openssl if missing (#14134)
* fix(alpine-docker): install openssl as core dependency

* fix(komodo): ensure openssl is available on Alpine before generating secrets
2026-04-30 19:16:52 +02:00