diff options
author | Sebastian | 2012-04-26 15:13:43 +0200 |
---|---|---|
committer | Sebastian | 2012-04-26 15:13:43 +0200 |
commit | 11863280555bd684b84271e7b1e1cc1af7fc34c6 (patch) | |
tree | 97e2fa0d050a23d73bf2dbf6a8125635acceba05 /tools | |
parent | preserve links when copy static content to tftpboot (diff) | |
download | core-11863280555bd684b84271e7b1e1cc1af7fc34c6.tar.gz core-11863280555bd684b84271e7b1e1cc1af7fc34c6.tar.xz core-11863280555bd684b84271e7b1e1cc1af7fc34c6.zip |
fix error msgs with spaces in /etc/opt/openslx/settings values
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/installer | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/installer b/tools/installer index 4b10d102..27ca86bf 100755 --- a/tools/installer +++ b/tools/installer @@ -3,7 +3,12 @@ # include fancy bash color stuff . tools/inc/colors -[ -f /etc/opt/openslx/settings ] && . /etc/opt/openslx/settings +if test -e /etc/opt/openslx/settings; then + sed /etc/opt/openslx/settings -e "s,=,=\"," -e "s,$,\"," > /tmp/slxsettings; + . /tmp/slxsettings; + rm /tmp/slxsettings; +fi; + # determin distribution if [ ! -z $(which lsb_release) ]; then |