bundlewrap/bundles/minecraft/items.py
2021-09-13 10:38:02 +02:00

31 lines
537 B
Python

users = {
'minecraft': {},
}
directories = {
'/opt/minecraft': {
'owner': 'minecraft',
},
}
downloads = {
'/opt/minecraft/server.jar': {
'url': node.metadata.get('minecraft/download'),
'sha256': node.metadata.get('minecraft/sha256'),
}
}
files = {
'/opt/minecraft/eula.txt': {
'content': 'eula=true',
}
}
svc_systemd = {
'minecraft': {
'needs': {
'file:/opt/minecraft/eula.txt',
'download:/opt/minecraft/server.jar',
},
},
}