23 lines
379 B
Bash
23 lines
379 B
Bash
#!/bin/bash
|
|
|
|
### SystemD service
|
|
printf "+ Preparign systemD service\n"
|
|
cp data/mc-velocity.service /etc/systemd/system/
|
|
|
|
systemctl daemon-reload
|
|
|
|
|
|
|
|
### Start service
|
|
|
|
printf "Do you want to start velocity proxy right now? [Y/n]: \n"
|
|
read startServer
|
|
|
|
if [[ "$startServer" =~ ("y"|"Y") || -z $startServer ]]; then
|
|
systemctl start mc-velocity
|
|
fi
|
|
|
|
systemctl enable mc-velocity
|
|
|
|
|