refactor(hosts): organize repository by server profiles (hosts/raspberrypi5, hosts/llm-node) and add host-aware installer
This commit is contained in:
1 parent
c53fc0a939
commit
c2740c9542
44 files changed
+528
-40
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
UNIT=raspiBackup.service
|
||||
|
||||
if systemctl is-active --quiet "$UNIT"; then
|
||||
echo "FEHLER: raspiBackup läuft bereits" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RC=0
|
||||
systemctl start --wait "$UNIT" || RC=$?
|
||||
|
||||
RESULT=$(systemctl show --value -p Result "$UNIT")
|
||||
STATUS=$(systemctl show --value -p ExecMainStatus "$UNIT")
|
||||
|
||||
if (( RC != 0 )) || [[ "$RESULT" != "success" || "$STATUS" != "0" ]]; then
|
||||
echo "FEHLER: raspiBackup: Result=$RESULT, Status=$STATUS" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "OK: raspiBackup erfolgreich abgeschlossen"
|
||||
Reference in new issue
Block a user