ayaports/user/listmonk/listmonk.sh

13 lines
191 B
Bash
Raw Normal View History

2024-02-23 06:20:52 +00:00
#!/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