#!/bin/sh BUNDLE_DIR='/usr/share/webapps/listmonk' cd $BUNDLE_DIR if [ "$(id -un)" != 'listmonk' ]; then exec su listmonk -c '"$0" "$@"' -- ./listmonk "$@" else exec ./listmonk "$@" fi