OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/docker/prod/setup/preinstall.sh

26 lines
593 B

#!/bin/bash
set -e
set -o pipefail
echo " ---> PREINSTALL"
display_error() {
echo " !--> ERROR on preinstall:"
tail -n 200 /tmp/dockerize.log
exit 1
}
echo " ---> Setting up common dependencies. This will take a while..."
./docker/setup/prod/preinstall-common.sh > /tmp/dockerize.log || display_error
if test -f ./docker/setup/prod/preinstall-$PLATFORM.sh ; then
echo " ---> Executing preinstall for $PLATFORM..."
./docker/setup/prod/preinstall-$PLATFORM.sh >/tmp/dockerize.log || display_error
fi
apt-get clean
rm -rf /var/lib/apt/lists/*
rm -f /tmp/dockerize.log
echo " OK."