spring-web-modules-kubernet.../apps/demo/move-file.sh
CUBETIQ Solution c72ee8968f Initial commit
2021-12-20 17:26:07 +07:00

10 lines
312 B
Bash

#!/bin/bash
# Get Execute Script Directory
SCRIPT_DIR=$(dirname "$0")
source "$SCRIPT_DIR"/variable.sh
echo "===> Copy & Replace Application Profile <==="
rm -rf "$APP_MODULE_PATH"/src/main/resources/application-dev.yml
cp -f "$SCRIPT_DIR"/application-"$APP_PROFILE".yml "$APP_MODULE_PATH"/src/main/resources/