From c40ac844de8b7b7ccd9ef463e5eee2fb51e3d483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bro=C4=8Dko?= Date: Fri, 5 Oct 2018 19:37:53 +0200 Subject: [PATCH] deploy_feature.sh --- deploy_feature.sh | 20 ++++++++++++++++++++ pom.xml | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 deploy_feature.sh diff --git a/deploy_feature.sh b/deploy_feature.sh new file mode 100755 index 0000000..f1c429f --- /dev/null +++ b/deploy_feature.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [[ "Darwin" == `uname` ]]; then + MC_PATH="../../server" + + cp "$1" "../../server/plugins/MarwCore/modules/$2.jar" + "$MC_PATH/cmd.sh" "marw reload $2" +else + LXC_CONT="marw" + MC_USER="mc" + MC_PATH="/home/mc/factions" + + + lxc file push "$1" "$LXC_CONT$MC_PATH/plugins/MarwCore/modules/$2.jar" + lxc exec $LXC_CONT chown $MC_USER:$MC_USER "$MC_PATH/plugins/MarwCore/modules/$2.jar" + lxc exec $LXC_CONT -- sudo -u $MC_USER "$MC_PATH/cmd.sh" "marw reload $2" + +fi + +exit 0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index da99052..0163396 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,11 @@ spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + placeholderapi + http://repo.extendedclip.com/content/repositories/placeholderapi/ \ No newline at end of file