Skip to content

Commit

Permalink
fix space arguments (fixes #123)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Jan 12, 2024
1 parent a31afec commit 61fb91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/source/manage
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export CONFIGURATION_DIRECTORY

# Finally, call manage.py
if [ -z "$FORCE_USER" ]; then
${INSTALL_BASE}/venv/bin/python ${INSTALL_BASE}/src/django-ca/ca/manage.py $@
${INSTALL_BASE}/venv/bin/python ${INSTALL_BASE}/src/django-ca/ca/manage.py "$@"
else
# NOTE: This su abomination is the only way I could figure out how to pass "$@" to manage.py.
su $FORCE_USER -s /bin/sh -c 'exec "$0" "$@"' -- ${INSTALL_BASE}/venv/bin/python ${INSTALL_BASE}/src/django-ca/ca/manage.py $@
su $FORCE_USER -s /bin/sh -c 'exec "$0" "$@"' -- ${INSTALL_BASE}/venv/bin/python ${INSTALL_BASE}/src/django-ca/ca/manage.py "$@"
fi

0 comments on commit 61fb91a

Please sign in to comment.