ayaports/user/freescout/freescout-manage.sh

12 lines
195 B
Bash
Raw Normal View History

2024-01-05 06:10:07 +00:00
#!/bin/sh
BUNDLE_DIR='/usr/share/webapps/freescout'
cd $BUNDLE_DIR
if [ "$(id -un)" != 'freescout' ]; then
exec su freescout -c '"$0" "$@"' -- php artisan "$@"
else
exec php artisan "$@"
fi