Updated the test-deployment script. Keep the version inside the filename.
This commit is contained in:
parent
dd492a7327
commit
a9be1eaa51
@ -7,9 +7,11 @@ DEVELOPER=$(whoami)
|
|||||||
if [ $DEVELOPER = "tobi" ]; then
|
if [ $DEVELOPER = "tobi" ]; then
|
||||||
BUKKIT_DIR="$HOME/minecraft/testbuk"
|
BUKKIT_DIR="$HOME/minecraft/testbuk"
|
||||||
PLUGIN_DIR="$HOME/minecraft/testbuk/plugins"
|
PLUGIN_DIR="$HOME/minecraft/testbuk/plugins"
|
||||||
|
START_STOP_SCRIPT="$BUKKIT_DIR/../minecraft.sh"
|
||||||
else
|
else
|
||||||
BUKKIT_DIR="$SCRIPT_DIR/../bukkit-testserver"
|
BUKKIT_DIR="$SCRIPT_DIR/../bukkit-testserver"
|
||||||
PLUGIN_DIR="$SCRIPT_DIR/../bukkit-testserver/plugins"
|
PLUGIN_DIR="$SCRIPT_DIR/../bukkit-testserver/plugins"
|
||||||
|
START_STOP_SCRIPT="$SCRIPT_DIR/minecraft.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -23,13 +25,8 @@ VERSION="$(grep -C3 '<groupId>de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep '<ver
|
|||||||
|
|
||||||
mkdir -p "$PLUGIN_DIR"
|
mkdir -p "$PLUGIN_DIR"
|
||||||
|
|
||||||
cp "$SCRIPT_DIR/../target/$ARTIFACT_ID-$VERSION".jar "$PLUGIN_DIR/$ARTIFACT_ID".jar
|
cp "$SCRIPT_DIR/../target/$ARTIFACT_ID-$VERSION".jar "$PLUGIN_DIR/"
|
||||||
|
|
||||||
echo -e "ddidderr\nmice_on_drugs\nMochaccino\nbeuth_el_max" > "$BUKKIT_DIR/ops.txt"
|
echo -e "ddidderr\nmice_on_drugs\nMochaccino\nbeuth_el_max" > "$BUKKIT_DIR/ops.txt"
|
||||||
|
|
||||||
|
$START_STOP_SCRIPT reload_or_start
|
||||||
if [ $DEVELOPER = "tobi" ]; then
|
|
||||||
"$BUKKIT_DIR/../minecraft.sh" reload_or_start
|
|
||||||
else
|
|
||||||
"$SCRIPT_DIR/minecraft.sh" reload_or_start
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user