2014-12-10 16:19:28 +00:00
|
|
|
#!/bin/bash
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
2014-12-10 16:19:28 +00:00
|
|
|
set -o pipefail
|
|
|
|
|
2016-02-29 04:44:16 +00:00
|
|
|
# Search for python first in case we are in a venv with python3 which
|
|
|
|
# should take precedence
|
|
|
|
python_path=$(command -v python || command -v python2 || command -v python3)
|
2015-12-07 21:03:59 +00:00
|
|
|
|
|
|
|
sudo -E $python_path $(dirname $0)/../bin/package-installs-squash --elements="$IMAGE_ELEMENT" --path=$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json
|