fix(media): mount mam-bonus script from /config, not ./

A relative bind resolves to /data/compose/10/... (the path inside the
Portainer container), so Docker bound an empty host dir and the job had
no script. Use the absolute /config/mam-bonus/buy-upload.sh like the
backup stack does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ginnoirandClaude Opus 5.5 committed 2026-11-21 17:25:35 -06:00
1 parent ca257000c8
commit 4aea57a7d7
1 file changed
+5 -2
+5 -2
View File
@@ -341,14 +341,17 @@ services:
# Once a day, spend MAM bonus points on upload credit (json/bonusBuy.php,
# spendtype=upload, "Max Affordable ") so seedbonus never caps out. Uses its
# own dedicated MAM session (MAM_BONUS_MAM_ID); the rotating cookie is kept
# in /config/mam-bonus. Failures go to ntfy topic `mam`. Script: ./mam-bonus.
# in /config/mam-bonus. Failures go to ntfy topic `mam`.
image: alpine:3.20
restart: unless-stopped
networks: [edge] # egress + ntfy:80 for failure alerts
env_file:
- stack.env
volumes:
- ./mam-bonus:/app:ro
# Absolute host path on purpose: a relative ./ mount resolves to
# /data/compose/<id>/... (Portainer-internal) and binds an EMPTY host dir.
# Canonical copy is stacks/media/mam-bonus/buy-upload.sh; scp it here.
- /config/mam-bonus/buy-upload.sh:/app/buy-upload.sh:ro
- /config/mam-bonus:/data
entrypoint: ["/bin/sh", "-c"]
command: