Im trying to make it easier to startup my minecraft server because i keep forgetting the command. i could just do a text file and copy paste it but i thought there was a way to make a script. The 3 commands i need run is:
sudo su crafty
cd /var/opt/minecraft/crafty
./run_crafty.sh
in that order.
So far ive put that in a text file and i have it executable which allows me to run in terminal. The problem is it asks for sudo (fine) but then stops there. doesnt change directory or anything. Sorry im quite new to terminal things.