deploy_feature.sh
This commit is contained in:
parent
a9ecd8851b
commit
c40ac844de
20
deploy_feature.sh
Executable file
20
deploy_feature.sh
Executable file
@ -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
|
6
pom.xml
6
pom.xml
@ -39,7 +39,11 @@
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>placeholderapi</id>
|
||||
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user