fix comparisons
This commit is contained in:
parent
0700211f90
commit
2abbdd4751
1 changed files with 2 additions and 2 deletions
4
stack.sh
4
stack.sh
|
@ -389,7 +389,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
||||||
# Check for kvm (hardware based virtualization). If unable to load kvm,
|
# Check for kvm (hardware based virtualization). If unable to load kvm,
|
||||||
# set the libvirt type to qemu. Note: many systems come with hardware
|
# set the libvirt type to qemu. Note: many systems come with hardware
|
||||||
# virtualization disabled in BIOS.
|
# virtualization disabled in BIOS.
|
||||||
if [[ "$LIBVIRT_TYPE" -eq "kvm" ]]; then
|
if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
|
||||||
sudo modprobe kvm || true
|
sudo modprobe kvm || true
|
||||||
if [ ! -e /dev/kvm ]; then
|
if [ ! -e /dev/kvm ]; then
|
||||||
echo "WARNING: Switching to QEMU"
|
echo "WARNING: Switching to QEMU"
|
||||||
|
@ -400,7 +400,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
||||||
# Install and configure **LXC** if specified. LXC is another approach to
|
# Install and configure **LXC** if specified. LXC is another approach to
|
||||||
# splitting a system into many smaller parts. LXC uses cgroups and chroot
|
# splitting a system into many smaller parts. LXC uses cgroups and chroot
|
||||||
# to simulate multiple systems.
|
# to simulate multiple systems.
|
||||||
if [[ "$LIBVIRT_TYPE" -eq "lxc" ]]; then
|
if [[ "$LIBVIRT_TYPE" == "lxc" ]]; then
|
||||||
sudo apt-get install lxc -y
|
sudo apt-get install lxc -y
|
||||||
# lxc requires cgroups to be configured on /cgroup
|
# lxc requires cgroups to be configured on /cgroup
|
||||||
sudo mkdir -p /cgroup
|
sudo mkdir -p /cgroup
|
||||||
|
|
Loading…
Reference in a new issue