mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-30 11:44:29 +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"
|
echo "$gs_setting_value"
|
||||||
}
|
}
|
||||||
|
|
||||||
. "/etc/environment"
|
[ -f /etc/environment ] && . "/etc/environment"
|
||||||
if [ -n "${CP_ENV_FILESYSTEM}" ] ; then
|
if [ -n "${CP_ENV_FILESYSTEM}" ] ; then
|
||||||
FILESYSTEM_PATH=$CP_ENV_FILESYSTEM
|
FILESYSTEM_PATH=$CP_ENV_FILESYSTEM
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user