mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
Check /etc/environment exists before using it
This commit is contained in:
@@ -129,7 +129,7 @@ get_setting() # Initials - gs
|
||||
echo "$gs_setting_value"
|
||||
}
|
||||
|
||||
. "/etc/environment"
|
||||
[ -f /etc/environment ] && . "/etc/environment"
|
||||
if [ -n "${CP_ENV_FILESYSTEM}" ] ; then
|
||||
FILESYSTEM_PATH=$CP_ENV_FILESYSTEM
|
||||
fi
|
||||
|
Reference in New Issue
Block a user