check for container.ini

This commit is contained in:
Alfredo Oliviero 2024-03-28 19:25:44 +01:00
parent 74a9f60d77
commit 74b53ae193
1 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,10 @@ DEBUG=false
COMPILE=true
java_version=11
CONTAINERFILE=docker/container.ini
################################################################################
# Help #
################################################################################
@ -73,6 +77,17 @@ while getopts $OPTSTRING opt; do
esac
done
if ! test -e "$CONTAINERFILE"; then
echo "missing docker/container.ini file.
Create and configurate your container.config.ini file from container.default.ini,
then create a symbolic link to container.ini
cp docker/container.default.ini docker/container.configuration.ini
ln -s docker/container.configuration.ini docker/container.ini"
exit 1;
fi
if [ $COMPILE = true ]; then
mvn clean package
else