I want to set the environmental variable
GNUPGHOME=/path/to/home for the apache user
www-data. I tried setting
if [ "`id -u`" -eq 33 ]; then export GNUPGHOME="/path/to/home" fi
Here 33 is the user id of the user
www-data. However, even after a fresh restart when I
su www-data and run
echo $GNUPGHOME I see that the variable is not set.
How can I make it so the user
GNUPGHOME variable is set?