mirror of
https://github.com/sigmasternchen/NurseBot
synced 2025-03-15 08:08:58 +00:00
deploy version and list versions
This commit is contained in:
parent
35e0af7f98
commit
e7ce527aba
2 changed files with 21 additions and 0 deletions
13
buildtools/deploy.sh
Executable file
13
buildtools/deploy.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
DEPLOY_DIR=$1
|
||||
VERSIONS=./versions
|
||||
|
||||
VERSION=$2
|
||||
|
||||
pushd $DEPLOY_DIR
|
||||
|
||||
unlink NurseBot.jar
|
||||
ln -s $VERSIONS/NurseBot$VERSION.jar NurseBot.jar
|
||||
|
||||
popd
|
8
buildtools/versions.sh
Executable file
8
buildtools/versions.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
DEPLOY_DIR=$1
|
||||
VERSIONS=./versions
|
||||
|
||||
ls $DEPLOY_DIR/$VERSIONS/*.jar | while read file; do
|
||||
echo $file | awk -F"NurseBot" '{ print $2 }' | awk -F".jar" '{ print $1 }'
|
||||
done
|
Loading…
Reference in a new issue