Files
homelab-infra/scripts/check-core-git-lxc.sh
T
karpenokandCursor 321c78fc27
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
fix(core-git): не терять образ раннера и не деплоить из-за пустого файла
Архив homelab-ansible хранится на диске CT, проверка раннера вынесена в отдельную кнопку, cAdvisor смотрит свой порт.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 23:09:05 +07:00

15 lines
617 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Со станции. Terraform не умеет записать AppArmor для CT 904.
set -euo pipefail
line=$(ssh -o BatchMode=yes netcore 'grep -E "^lxc.apparmor.profile:" /etc/pve/lxc/904.conf' || true)
if [ "$line" = "lxc.apparmor.profile: unconfined" ]; then
echo "ok: $line"
exit 0
fi
echo "В /etc/pve/lxc/904.conf нет lxc.apparmor.profile: unconfined" >&2
echo "Сейчас: ${line:-пусто}" >&2
echo "Без этой строки задачи Gitea падают на старте контейнера. После правки CT надо перезагрузить." >&2
exit 1