Browse Source

[fix] add package 'which' to CentOS-7 boilerplate

Newer CentOS-7 images from https://images.linuxcontainers.org do no longer
include the which command.

Issue:

    $ sudo -H ./utils/lxc.sh cmd searx-centos7 ./utils/filtron.sh install all
    INFO:  [searx-centos7] ./utils/filtron.sh install all
    ...
    Install Go in user's HOME
    -------------------------

    download and install go binary ..
    ...
    -bash: line 1: which: command not found
    -->|ERROR - Go Installation not found in PATH!?!
    -bash: line 2: which: command not found

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 4 years ago
parent
commit
c355bc3481
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/lxc.sh

+ 1 - 1
utils/lxc.sh

@@ -59,7 +59,7 @@ echo 'Set disable_coredump false' >> /etc/sudo.conf
 # shellcheck disable=SC2034
 # shellcheck disable=SC2034
 centos7_boilerplate="
 centos7_boilerplate="
 yum update -y
 yum update -y
-yum install -y git curl wget hostname sudo
+yum install -y git curl wget hostname sudo which
 echo 'Set disable_coredump false' >> /etc/sudo.conf
 echo 'Set disable_coredump false' >> /etc/sudo.conf
 "
 "