diff options
| author | Simon Rettberg | 2014-02-17 19:13:39 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-02-17 19:13:39 +0100 |
| commit | 2ebc77179973055a59d155cdfad265b237c99eb3 (patch) | |
| tree | 104e693d7e75e64c8f0be8cb4bca2c8e98ec31ed /mltk | |
| parent | [redsocks] Tweaked iptables rules so we don't interfere with openstack (diff) | |
| download | tm-scripts-2ebc77179973055a59d155cdfad265b237c99eb3.tar.gz tm-scripts-2ebc77179973055a59d155cdfad265b237c99eb3.tar.xz tm-scripts-2ebc77179973055a59d155cdfad265b237c99eb3.zip | |
mltk now sources file "config" on start
You can put pretty much anything there, but there are two main uses for now:
Setting an http proxy:
export http_proxy=1.2.3.4:8080
(wget will obey this env var)
Setting a custom URL for fetching the distro logo:
CFG_DISTLOGO_URL=http://somewhere/distlogo?distro=
(Defaults to mltk-services.ruf.uni-freiburg.de/... if unset)
Same could be done in openslx if it would be useful...
Diffstat (limited to 'mltk')
| -rwxr-xr-x | mltk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ for HELPER in "$ROOT_DIR"/remote/includes/*.inc; do qnd_exit done +# Support sourcing a "config" where you can set up stuff like 'export http_proxy=...' +[ -e "$ROOT_DIR/config" ] && . "$ROOT_DIR/config" banner () { echo -e "\033[38;5;202m\t __ __ __ " |
