mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2026-01-23 02:25:16 +00:00
Add environment variables for easy deployment
Signed-off-by: Teja Swaroop Pothala <tejaswaroop.pothala@kasmweb.com>
This commit is contained in:
parent
e9e2713302
commit
365909f667
2 changed files with 8 additions and 7 deletions
|
|
@ -10,6 +10,14 @@ FIREFOX_ARGS=${FIREFOX_APP_ARGS:-$DEFAULT_FIREFOX_ARGS}
|
|||
|
||||
CYBERBRO_SERVER="127.0.0.1:5000"
|
||||
|
||||
# Check if GUI_ENABLED_ENGINES is set else apply default
|
||||
if [ -z ${GUI_ENABLED_ENGINES+x} ]; then
|
||||
GUI_ENABLED_ENGINES=reverse_dns,rdap,ipquery,spur,phishtank,threatfox,urlscan,google,github,ioc_one_html,ioc_one_pdf,abusix,hudsonrock
|
||||
fi
|
||||
|
||||
# Make GUI_ENABLED_ENGINES an environment variable
|
||||
export GUI_ENABLED_ENGINES
|
||||
|
||||
options=$(getopt -o gau: -l go,assign,url: -n "$0" -- "$@") || exit
|
||||
eval set -- "$options"
|
||||
|
||||
|
|
|
|||
|
|
@ -24,13 +24,6 @@ pip3 install -r requirements.txt
|
|||
|
||||
deactivate
|
||||
|
||||
# Check if GUI_ENABLED_ENGINES is set else apply default
|
||||
if [ -z ${GUI_ENABLED_ENGINES+x} ]; then
|
||||
GUI_ENABLED_ENGINES=reverse_dns,rdap,ipquery,spur,phishtank,threatfox,urlscan,google,github,ioc_one_html,ioc_one_pdf,abusix,hudsonrock
|
||||
fi
|
||||
|
||||
export GUI_ENABLED_ENGINES
|
||||
|
||||
# Cleanup for app layer
|
||||
chown -R 1000:0 $HOME
|
||||
find /usr/share/ -name "icon-theme.cache" -exec rm -f {} \;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue