mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-22 15:33:08 +01:00
Merge branch 'feature/KASM-2862-remove-legacy-firefox-proxy-policy-script' into 'develop'
Remove obsolete Firefox proxy policy script Closes KASM-2862 See merge request kasm-technologies/internal/workspaces-core-images!76
This commit is contained in:
commit
0c5506f96b
@ -1,44 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
if [[ -z "${http_proxy_address}" || -z "${http_proxy_port}" ]]; then
|
||||
echo "proxy configs not set"
|
||||
else
|
||||
if [ -d $HOME/.mozilla/firefox/kasm/ ]; then
|
||||
echo "Found default firefox profile. Setting Firefox proxy configurations"
|
||||
out="$HOME/.mozilla/firefox/kasm/user.js"
|
||||
echo "user_pref(\"network.proxy.http\", \"${http_proxy_address}\");" >> $out
|
||||
echo "user_pref(\"network.proxy.http_port\", ${http_proxy_port});" >> $out
|
||||
echo "user_pref(\"network.proxy.type\", 1);" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.ftp\", \"\");" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.ftp_port\", 0);" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.socks\", \"\");" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.socks_port\", 0);" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.ssl\", \"\");" >> $out
|
||||
echo "user_pref(\"network.proxy.backup.ssl_port\", 0);" >> $out
|
||||
echo "user_pref(\"network.proxy.ftp\", \"${http_proxy_address}\");" >> $out
|
||||
echo "user_pref(\"network.proxy.ftp_port\", ${http_proxy_port});" >> $out
|
||||
echo "user_pref(\"network.proxy.http\", \"${http_proxy_address}\");" >> $out
|
||||
echo "user_pref(\"network.proxy.http_port\", ${http_proxy_port});" >> $out
|
||||
echo "user_pref(\"network.proxy.share_proxy_settings\", true);">> $out
|
||||
echo "user_pref(\"network.proxy.socks\", \"${http_proxy_address}\");" >> $out
|
||||
echo "user_pref(\"network.proxy.socks_port\", ${http_proxy_port});" >> $out
|
||||
echo "user_pref(\"network.proxy.ssl\", \"${http_proxy_address}\");" >> $out
|
||||
echo "user_pref(\"network.proxy.ssl_port\", ${http_proxy_port});">> $out
|
||||
echo "user_pref(\"network.proxy.type\", 1);" >> $out
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [[ -z "${browser_startup_url}" ]]; then
|
||||
echo "browser_startup_url not set"
|
||||
else
|
||||
if [ -d $HOME/.mozilla/firefox/kasm/ ]; then
|
||||
echo "Found default firefox profile. Setting Firefox startup url settings"
|
||||
out="$HOME/.mozilla/firefox/kasm/user.js"
|
||||
echo "user_pref(\"browser.startup.homepage\", \"${browser_startup_url}\");" >> $out
|
||||
# Disable all the firefox firstrun and welcome tabs
|
||||
echo "user_pref(\"browser.startup.firstrunSkipsHomepage\", false);" >> $out
|
||||
echo "user_pref(\"toolkit.telemetry.reportingpolicy.firstRun\", false);" >> $out
|
||||
echo "user_pref(\"browser.startup.homepage_override.mstone\", \"ignore\");" >> $out
|
||||
fi
|
||||
fi
|
@ -58,9 +58,6 @@ rm -rf $HOME/.config/pulse
|
||||
echo "Removing Default Profile Directory"
|
||||
rm -rf $DEFAULT_PROFILE_HOME/*
|
||||
|
||||
# FIXME Temporary proxy config script
|
||||
$STARTUPDIR/browser_proxy_config.sh
|
||||
|
||||
# unknown option ==> call command
|
||||
echo -e "\n\n------------------ EXECUTE COMMAND ------------------"
|
||||
echo "Executing command: '$@'"
|
||||
|
Loading…
Reference in New Issue
Block a user