automatic deployment

This commit is contained in:
2018-09-03 02:25:10 +02:00
parent 55b89c700f
commit 0d36a0b88d
3 changed files with 39 additions and 1 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
LXC_CONT="marw"
MC_USER="mc"
MC_PATH="/home/mc/factions"
lxc file push "$1" "$LXC_CONT$MC_PATH/plugins/$2.jar"
lxc exec $LXC_CONT chown $MC_USER:$MC_USER "$MC_PATH/plugins/$2.jar"
lxc exec $LXC_CONT -- sudo -u $MC_USER "$MC_PATH/cmd.sh" "plugman reload $2"
exit 0