service working only some errors

This commit is contained in:
godot 2024-07-01 00:34:25 +02:00
parent 97aa19ec7f
commit c87b470907
2 changed files with 6 additions and 7 deletions

View File

@ -1,10 +1,9 @@
To switch user use: su minecraft -s /bin/bash To switch user use: > su minecraft -s /bin/bash
# To DO # To DO
- [ ] Basic commands - [ ] Basic commands
- [*] server.properties + run.sh + eula.txt - [x] server.properties + run.sh + eula.txt
- [ ] iptable commands - [ ] iptable commands
- [t] my own .service file - [!] my own .service file
- [*] modification of run.sh
- [ ] screen usege - [ ] screen usege
- [ ] SSH keys - [ ] SSH keys

View File

@ -1,6 +1,6 @@
sudo apt update sudo apt update
sudo apt upgrade sudo apt upgrade
sudo apt install openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y sudo apt install qemu-guest-agent openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y
groupadd minecraft groupadd minecraft
useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf
mkdir /opt/minecraft # it may exist mkdir /opt/minecraft # it may exist
@ -17,7 +17,7 @@ rm server.properties
mv ../server.properties . mv ../server.properties .
7z x ../Mods.zip -omods 7z x ../Mods.zip -omods
./run.sh ./run.sh
cp mc-forge.service /etc/systemd/system/
chown -R minecraft:minecraft /opt/minecraft