Skip to content

Commit

Permalink
bug: error when installing ceph dependencies with install-deps.sh
Browse files Browse the repository at this point in the history
The parsing is sensitive to i18n and will fail if, for instance, it is set to French.
Workaround the problem by always setting the language to C so the script
can safely assume all output will be in english.

http://tracker.ceph.comm/issues/10596 Fixes: ceph#10596

Signed-off-by: Ahoussi Armand <[email protected]>
  • Loading branch information
delco225 committed Jan 24, 2015
1 parent f078a42 commit 3347e0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
DIR=/tmp/install-deps.$$
trap "rm -fr $DIR" EXIT
mkdir -p $DIR

if test $(id -u) != 0 ; then
SUDO=sudo
fi

export LC_ALL=C# the following is vulnerable to i18n
case $(lsb_release -si) in
Ubuntu|Debian|Devuan)
$SUDO apt-get install -y dpkg-dev
Expand Down

0 comments on commit 3347e0d

Please sign in to comment.