NurseBot/buildtools/deploy.sh

25 lines
359 B
Bash
Raw Normal View History

2018-07-10 19:40:22 +00:00
#!/bin/bash
DEPLOY_DIR=$1
VERSIONS=./versions
VERSION=$2
pushd $DEPLOY_DIR
2018-07-13 15:54:40 +00:00
file=$VERSIONS/NurseBot$VERSION.jar
2018-07-14 21:21:02 +00:00
models=$VERSIONS/activejdbc_models$VERSION.properties
2018-07-13 15:54:40 +00:00
if test ! -f $file; then
echo "Version not found."
exit 1
fi
2018-07-14 21:21:02 +00:00
unlink activejdbc_models.properties
ln $models activejdbc_models.properties
2018-07-10 19:40:22 +00:00
unlink NurseBot.jar
2018-07-13 15:54:40 +00:00
ln $file NurseBot.jar
2018-07-10 19:40:22 +00:00
popd