mc-velocity/install/service.sh
2024-08-08 18:44:44 +02:00

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