#!/usr/bin/env bash CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" IMPORT_DB=$1 source "$CUR_PATH/docker-build-prod.sh" echo "Fixing EOL..." # using -n (new file mode) should also fix the issue # when the file is created with the default acore user but you # set a different user into the docker configurations for file in "env/dist/etc/"* do dos2unix -n $file $file done [[ $IMPORT_DB != 0 ]] && bash acore.sh db-assembler import-all || true