#!/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 "$@"