automatic deployment
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user