11 lines
189 B
Bash
11 lines
189 B
Bash
#!/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
|