always_load_all_script_env_vars for session variables

Version 1.56

Feature
Finished

The all_pre.sh and all_post.sh will end up loading in some specific environmental variables. In some cases, these still hang around for other custom hook scripts, which is sometimes useful. The issue is that we might not want to impost the large overhead of these scripts, just to have those variables loaded. Solution is a new internal variable, off by default: always_load_all_script_env_vars=0 So that when you turn it on in the directadmin.conf: always_load_all_script_env_vars=1 even if the all scripts are not present, DA will still load in the environmental variables from these scripts, so the might be available later on.

Interested to try DirectAdmin? Get a 30-day Free Trial!