dockcheck/addons/DSM
mag37 eb57b63a10
permission checks, dsm readme, markdown (#171)
* added check for docker socket permissions

* added sudo-check to pkg-manager

* corrected variable typo and some printf colors

* and newline..

* DSM extra readme added

* final tweaks, DSM readme

* added markdown to readme

* added markdown support to telegram template

* removed container specification from compose up -d
This will ensure any dependant containers in the same stack will
restart, others will be untouched.

* Rearranged where the url enrichment happens
2025-05-02 21:40:24 +02:00
..
dsm1.png permission checks, dsm readme, markdown (#171) 2025-05-02 21:40:24 +02:00
dsm2.png permission checks, dsm readme, markdown (#171) 2025-05-02 21:40:24 +02:00
dsm3.png permission checks, dsm readme, markdown (#171) 2025-05-02 21:40:24 +02:00
README.md permission checks, dsm readme, markdown (#171) 2025-05-02 21:40:24 +02:00

Using Dockcheck in DSM

Dockcheck cannot directly update containers managed in the Container Manager GUI, but it can still be used to notify you of containers with updates available. There are two ways to be notified, each with their own caveats:

  1. Enabling email notifications within the Task Scheduler (step 6i below) will send an email that includes the entire script as run. This will not include the urls.list links to release notes, but it will show a full list of containers checked, up to date, and needing updates (following the args included in the scheduled task).
  2. The DSM notification template will enable Dockcheck to directly send an email when using the -i flag. This is most useful when paired with an accurate urls.list file, and results in a neat succinct email notification of only containers to be updated.

This is a user preference, and both notifications are not necessary. However, regardless of the notification method, it is necessary to set up a scheduled task to run Dockcheck at a set interval (otherwise it will only run when manually triggered).

Automate Dockcheck with DSM Task Scheduler:

  1. Open Control Panel and navigate to Task Scheduler
  2. Create a Scheduled Task > User-defined script
  3. Task Name: Dockcheck
  4. User: root
  5. Schedule: User Preference
  6. Task Settings:
    1. ✔ Send run details by email (include preferred email) This is the optional step as described above)
    2. User-defined script: export HOME=/root && cd /path/to/dockcheck && ./dockcheck.sh -n -i -I or other custom args
  7. Click OK, accept warning message

Set up the DSM Notification template

Copy the dockcheck/notify_templates/notify_DSM.sh to the same directory as where you keep dockcheck.sh.
Use as is (uses your default notification email setting) or edit and override manually.

Made with much help and contribution from @firmlyundecided and @yoyoma2.