deploy.sh: added my MB Air
This commit is contained in:
parent
1ba72e4b14
commit
9da3a6a828
17
deploy.sh
17
deploy.sh
@ -1,12 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LXC_CONT="marw"
|
if [[ "Eriks-MacBook-Air.local" == `hostname` ]]; then
|
||||||
MC_USER="mc"
|
cp "$1" "../../server/plugins/$2.jar"
|
||||||
MC_PATH="/home/mc/factions"
|
else
|
||||||
|
LXC_CONT="marw"
|
||||||
|
MC_USER="mc"
|
||||||
|
MC_PATH="/home/mc/factions"
|
||||||
|
|
||||||
|
|
||||||
lxc file push "$1" "$LXC_CONT$MC_PATH/plugins/$2.jar"
|
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 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 exec $LXC_CONT -- sudo -u $MC_USER "$MC_PATH/cmd.sh" "plugman reload $2"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user