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