peternashaat 6d9d5a2125 loki-system-logs.sh: persist promtail positions, enable on boot, safer apt
- Move positions.yaml from /tmp (wiped on reboot) to /var/lib/promtail so
  promtail resumes where it left off after a reboot instead of either
  re-ingesting (duplicate lines in Loki) or skipping a chunk when a log
  was rotated during downtime.
- Create /var/lib/promtail with promtail:nogroup ownership (the
  apt-installed promtail user's primary group is nogroup).
- systemctl enable promtail so the service auto-starts on boot; previously
  only restart was called, so promtail did not survive a VM reboot.
- set -euo pipefail + DEBIAN_FRONTEND=noninteractive so the script aborts
  on first failure and runs cleanly under automation, without debconf
  prompts on minimal hosts.
- Fix shebang typo (#/bin/bash -> #!/bin/bash).
2026-05-24 12:17:55 +00:00
2026-03-11 11:23:14 +00:00
2024-05-13 15:32:11 +02:00
2025-10-28 11:47:13 +00:00
2022-02-03 16:41:58 +01:00
2022-04-11 17:01:25 +02:00
2026-03-11 11:32:43 +00:00
2023-09-29 09:58:44 +02:00
2024-12-19 15:51:23 +01:00
2024-03-06 06:38:05 +00:00
2023-12-30 23:21:13 +01:00
2026-03-11 11:21:11 +00:00
2022-02-07 14:16:37 +01:00
2025-06-08 15:05:50 +02:00

TF Public scripts

This handy repository will make it easy to get a script or config file on a server

Please take care NOT to push scripts with sensitive information in them.

How to Use prep-grid-vm.sh

  • To install only Docker, you would run: ./prep-grid-vm.sh -d
  • To install only Caddy, you would run: ./prep-grid-vm.sh -c
  • To install both Docker and Caddy, you would run: ./prep-grid-vm.sh -dc
S
Description
Public repo to distribute scripts and config's
Readme
8.1 MiB
2 Stars 5 Watchers 0 Forks
Languages
Shell 100%