Reconcile stored connections before shared runtime

This commit is contained in:
Terranom674
2026-08-18 16:22:31 +02:00
parent eb3bc48ceb
commit 1e77988831

View File

@@ -4,6 +4,12 @@ set -Eeuo pipefail
CONFIG_DIR="/etc/bratonien-tools/nc-connector" CONFIG_DIR="/etc/bratonien-tools/nc-connector"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
shopt -s nullglob shopt -s nullglob
if ! php "$SCRIPT_DIR/reconcile.php"; then
echo "NC Connector: gespeicherte Verbindungen konnten nicht mit der Runtime abgeglichen werden." >&2
exit 1
fi
configs=("$CONFIG_DIR"/connection-*.conf) configs=("$CONFIG_DIR"/connection-*.conf)
if [[ ${#configs[@]} -eq 0 ]]; then if [[ ${#configs[@]} -eq 0 ]]; then