Add Unraid template, icon and privilege-dropping entrypoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0984af25bc
commit
4168e9990b
8 files changed
+102
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#!/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 "$@"
|
||||
Reference in new issue
Block a user