mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Check /etc/environment exists before using it
This commit is contained in:
parent
42a31e37b1
commit
b3cfd7e9d8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user