Switched to PircbotX 2.4-SNAPSHOT
This commit is contained in:
parent
afece310d2
commit
d6c0b99869
7 changed files with 27 additions and 20 deletions
19
deploy.sh
19
deploy.sh
|
@ -1,12 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
DEPLOYDIR=/home/erik/mobitopia/mobibot
|
||||
|
||||
if [ -f "deploy/mobibot.jar" ]; then
|
||||
/bin/cp deploy/mobibot.jar $DEPLOYDIR
|
||||
rm -rf $DEPLOYDIR/lib/*.jar
|
||||
cp deploy/lib/*.jar $DEPLOYDIR/lib
|
||||
chmod 755 $DEPLOYDIR/*.jar $DEPLOYDIR/lib/*.jar
|
||||
else
|
||||
echo "mobibot.jar not found."
|
||||
fi
|
||||
./gradlew deploy
|
||||
[ $? -eq 0 ] && sftp nix3.thauvin.us <<EOF
|
||||
cd mobitopia/mobibot
|
||||
lcd deploy
|
||||
put *.jar
|
||||
cd lib
|
||||
rm *.jar
|
||||
put lib/*.jar
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue