#!/bin/sh # set umask umask ${UMASK} # set permissions on application folder chown -R ${PUID}:${PGID} /foundry # run Foundry with the environmentally set user and group id exec su-exec ${PUID}:${PGID} node /foundry/resources/app/main.js --dataPath=/foundrydata