moved deploy_features to MarwStuff

This commit is contained in:
Erik Bročko 2018-10-05 19:34:32 +02:00
parent 48ca6d4d8f
commit 6d6cb733a9
2 changed files with 7 additions and 28 deletions

View File

@ -1,20 +0,0 @@
#!/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

View File

@ -37,20 +37,19 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<executable>${basedir}/deploy_feature.sh</executable> <executable>${project.parent.basedir}/deploy_feature.sh</executable>
<arguments> <arguments>
<argument>${project.build.directory}/${project.build.finalName}.jar</argument> <argument>${project.build.directory}/${project.build.finalName}.jar</argument>
<argument>${project.artifactId}</argument> <argument>${project.artifactId}</argument>
</arguments> </arguments>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<configuration> <configuration>
<outputDirectory> ${project.build.outputDirectory}/resources</outputDirectory> <outputDirectory>${project.build.outputDirectory}/resources</outputDirectory>
</configuration> </configuration>
</plugin>
</plugin>
</plugins> </plugins>
</build> </build>
<dependencies> <dependencies>