I'm on debian logged in as root and I am trying to set an env var for a specific user (not root). This is what I tried and didn't work:
su - nginx -c export APP_SETTINGS='production.py'
The error I got was:
No directory, logging in with HOME=/
Can anyone tell me what I should be using?