6d9d5a21253963614569c19611598107f9ecc1af
- 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).
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
Description
Public repo to distribute scripts and config's
8.1 MiB
2 Stars
5 Watchers
0 Forks
Languages
Shell
100%