deploy.sh: added my MB Air

This commit is contained in:
Erik Bročko 2018-09-06 09:30:51 +02:00
parent 1ba72e4b14
commit 9da3a6a828

View File

@ -1,12 +1,17 @@
#!/bin/bash
LXC_CONT="marw"
MC_USER="mc"
MC_PATH="/home/mc/factions"
if [[ "Eriks-MacBook-Air.local" == `hostname` ]]; then
cp "$1" "../../server/plugins/$2.jar"
else
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"
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"
fi
exit 0