Update for new AWS image style

Support old minecraft versions
This commit is contained in:
2020-12-07 19:50:30 +00:00
parent 1b6ec8682f
commit 9e0b04afdc
6 changed files with 36 additions and 12 deletions

View File

@@ -2,13 +2,13 @@
## Installing
Assuming user is `ubuntu`. Extract in `/home/ubuntu/minecraft`
Assuming user is `ubuntu`. Extract in `/home/ubuntu/control`
# Install systemd services
```
mkdir -p /home/ubuntu/.config/systemd/user
ln -s /home/ubuntu/minecraft/services/set_initial_ttl.service /home/ubuntu/.config/systemd/user/set_initial_ttl.service
ln -s /home/ubuntu/minecraft/services/ensure_running.service /home/ubuntu/.config/systemd/user/ensure_running.service
ln -s /home/ubuntu/control/services/set_initial_ttl.service /home/ubuntu/.config/systemd/user/set_initial_ttl.service
ln -s /home/ubuntu/control/services/ensure_running.service /home/ubuntu/.config/systemd/user/ensure_running.service
systemctl --user enable set_initial_ttl
systemctl --user enable ensure_running
@@ -18,5 +18,8 @@ loginctl show-user ubuntu --property Linger
# Setup user linger and crontab
```
loginctl enable-linger ubuntu
crontab -l /home/ubuntu/minecraft/crontab
crontab -l /home/ubuntu/control/crontab
```
# Install pip dependencies
sudo pip install -r /home/ubuntu/control/requirements.txt