Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Switch arch usage to uname -m on base ubuntu lxc template
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
fgrehm committed Apr 22, 2013
1 parent b95b43f commit 098e3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boxes/ubuntu/lxc-template
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,15 @@ if [ -f /etc/lsb-release ]; then
fi
fi

arch=$(arch)
arch=$(uname -m)

# Code taken from debootstrap
if [ -x /usr/bin/dpkg ] && /usr/bin/dpkg --print-architecture >/dev/null 2>&1; then
arch=`/usr/bin/dpkg --print-architecture`
elif type udpkg >/dev/null 2>&1 && udpkg --print-architecture >/dev/null 2>&1; then
arch=`/usr/bin/udpkg --print-architecture`
else
arch=$(arch)
arch=$(uname -m)
if [ "$arch" = "i686" ]; then
arch="i386"
elif [ "$arch" = "x86_64" ]; then
Expand Down

0 comments on commit 098e3a6

Please sign in to comment.