mirror of
https://github.com/zardus/ctf-tools
synced 2025-03-17 23:26:58 +00:00
manage-tools: run apt-get update before attempting to install something, a container might not have latest or any package list
This commit is contained in:
parent
3d71d79c97
commit
3f21e29053
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ function base_build_setup_debian()
|
|||
{
|
||||
PACKAGE_REQS="build-essential libtool g++ gcc texinfo curl wget automake autoconf python python-dev git subversion unzip virtualenvwrapper lsb-release"
|
||||
PACKAGE_COUNT=$(echo $PACKAGE_REQS | tr ' ' '\n' | wc -l)
|
||||
sudo apt-get update
|
||||
if [ $(dpkg -l $PACKAGE_REQS | grep "^ii" | wc -l) -ne $PACKAGE_COUNT ]
|
||||
then
|
||||
if [ "$ALLOW_SUDO" -eq 1 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue