Say I have something like this,
tee filename <<EOF
...
access_log /srv/users/serverpilot/log/$APP_NAME/$APP_NAME_nginx.access.log main;
...
EOF
where $APP_NAME
is a variable.
Bash interprets $APP_NAME_nginx
as a variable and doesn't print any value there. How could I fix that?