if I need to unset an environment variable from script it used to be "sourced" like
. ./myscript.sh
or
source ./myscript.sh
But how do i make this work, if i launch this script from supervisord?
[program:myapp]
command=source /usr/bin/myscript.sh
...
does not work.
Simple example script (myscript.sh):
#!/bin/bash
unset -v SOME_VAR
That's all ...