Files
Flypaper/docker-entrypoint.sh
TomandClaude Opus 5.5 4168e9990b
Build and deploy / build (push) Successful in 1m32s
Build and deploy / deploy (push) Successful in 22s
Release / image (push) Successful in 1m57s
Release / release (push) Successful in 7s
Add Unraid template, icon and privilege-dropping entrypoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:35:46 +01:00

12 lines
388 B
Bash

#!/bin/sh
set -e
# Started as root (e.g. by the Unraid template): hand /data to the app user, which a
# freshly created host folder is not, then drop privileges for good.
if [ "$(id -u)" = "0" ]; then
chown -R "$APP_UID:$APP_UID" /data
exec setpriv --reuid="$APP_UID" --regid="$APP_UID" --clear-groups dotnet /app/Flypaper.Web.dll "$@"
fi
exec dotnet /app/Flypaper.Web.dll "$@"