Add an Unraid plugin with a Settings page for Fluxer.
The stack can be installed from a plugin URL and started from Settings, the same shape as other Unraid plugin installers.
This commit is contained in:
1 parent
028c71e5a9
commit
a19983df7b
10 files changed
+437
-9
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# Stop the Fluxer compose project without deleting its data.
|
||||
set -euo pipefail
|
||||
|
||||
source /usr/local/emhttp/plugins/fluxer/scripts/common.sh
|
||||
mkdir -p "$(dirname "$LOG")" "$(dirname "$LOCK")"
|
||||
exec 9>"$LOCK"
|
||||
if ! flock -n 9; then
|
||||
echo "A Fluxer start or stop is already running."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec >>"$LOG" 2>&1
|
||||
echo "=== $(date -u +%Y-%m-%dT%H:%M:%SZ) stop ==="
|
||||
|
||||
fluxer_load_cfg
|
||||
if [[ ! -f "$STACK/docker-compose.yml" ]]; then
|
||||
echo "No stack at $STACK yet."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
docker compose --project-directory "$STACK" stop
|
||||
echo "=== $(date -u +%Y-%m-%dT%H:%M:%SZ) stop finished ==="
|
||||
Reference in new issue
Block a user