Files
geointel/docker-entrypoint.sh
T
Jens d5ea270329
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s
Update GeoIntel project files
2026-07-25 23:43:08 +02:00

18 lines
564 B
Bash

#!/bin/sh
set -eu
icon_source="${UNRAID_ICONS_SOURCE_PATH:-/unraid-icons-source}"
icon_cache="${UNRAID_ICONS_PATH:-/unraid-icons-cache}"
if [ -d "$icon_source" ] && [ -d "$icon_cache" ]; then
find "$icon_source" -maxdepth 1 -type f \( \
-iname '*.gif' -o -iname '*.ico' -o -iname '*.jpeg' -o \
-iname '*.jpg' -o -iname '*.png' -o -iname '*.svg' -o \
-iname '*.webp' \
\) -exec cp -f '{}' "$icon_cache/" \;
find "$icon_cache" -maxdepth 1 -type f -exec chmod 0644 '{}' \;
chown -R dockdeck:dockdeck "$icon_cache"
fi
exec su-exec dockdeck "$@"