ayaports/user/tandoor-recipes/recipes-manage.sh

12 lines
189 B
Bash
Raw Normal View History

2024-01-05 01:59:56 +00:00
#!/bin/sh
BUNDLE_DIR='/usr/share/webapps/recipes'
cd $BUNDLE_DIR
if [ "$(id -un)" != 'recipes' ]; then
exec su recipes -c '"$0" "$@"' -- ./manage.py "$@"
else
exec ./manage.py "$@"
fi