fix: resolve job scripts from repo when not installed to /etc

This commit is contained in:
Lars committed 2026-10-29 21:41:55 +01:00
1 parent 03e09fd0d0
commit 6882fe397c
2 files changed
+40 -13

No files matched your search

+4 -2
View File
@@ -43,7 +43,8 @@ chmod 0640 "${DUMP_FILE}"
echo "2. Erstelle Manifest, SHA256 und Medien-Index..."
MANIFEST_SCRIPT="/etc/backup-orchestrator/scripts/shinkan/shinkan-backup-manifest"
if [[ ! -f "$MANIFEST_SCRIPT" ]]; then
MANIFEST_SCRIPT="$(dirname "${BASH_SOURCE[0]}")/../../scripts/shinkan/shinkan-backup-manifest"
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
MANIFEST_SCRIPT="${REPO_ROOT}/scripts/shinkan/shinkan-backup-manifest"
fi
python3 "${MANIFEST_SCRIPT}" \
@@ -55,7 +56,8 @@ python3 "${MANIFEST_SCRIPT}" \
echo "3. Veroeffentliche Backup-Set im Recovery-Archiv..."
PUBLISH_SCRIPT="/etc/backup-orchestrator/scripts/publish-backup-set.sh"
if [[ ! -f "$PUBLISH_SCRIPT" ]]; then
PUBLISH_SCRIPT="$(dirname "${BASH_SOURCE[0]}")/../../scripts/common/publish-backup-set.sh"
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
PUBLISH_SCRIPT="${REPO_ROOT}/scripts/common/publish-backup-set.sh"
fi
bash "${PUBLISH_SCRIPT}" \