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/setup/preinstall.sh

25 lines
578 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/preinstall-common.sh > /tmp/dockerize.log || display_error
if test -f ./docker/setup/preinstall-$PLATFORM.sh ; then
echo " ---> Executing preinstall for $PLATFORM..."
./docker/setup/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."