VIAaaS: update java, startup detection, use ash (#1362)

This commit is contained in:
creeper123123321 2021-11-15 10:47:24 -03:00 committed by GitHub
parent da22608468
commit e0e7ae699e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,33 +4,34 @@
"version": "PTDL_v1", "version": "PTDL_v1",
"update_url": null "update_url": null
}, },
"exported_at": "2021-06-28T11:55:37-04:00", "exported_at": "2021-10-16T11:26:14-03:00",
"name": "VIAaaS", "name": "VIAaaS",
"author": "regulad@outlook.com", "author": "regulad@outlook.com",
"description": "VIAaaS - ViaVersion as a Service - Standalone ViaVersion proxy", "description": "VIAaaS - ViaVersion as a Service - Standalone ViaVersion proxy",
"features": null, "features": null,
"images": [ "images": [
"ghcr.io\/pterodactyl\/yolks:java_16" "ghcr.io\/pterodactyl\/yolks:java_16",
"ghcr.io\/pterodactyl\/yolks:java_17"
], ],
"file_denylist": [], "file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}} -sslPort={{WEBSERVER_PORT}}", "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}} -sslPort={{WEBSERVER_PORT}}",
"config": { "config": {
"files": "{\r\n \"config\/viaaas.yml\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"bind-address\": \"0.0.0.0\"\r\n }\r\n }\r\n}", "files": "{\r\n \"config\/viaaas.yml\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"bind-address\": \"0.0.0.0\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Application started:\"\r\n}", "startup": "{\r\n \"done\": \"Application started in \"\r\n}",
"logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}", "logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}",
"stop": "end" "stop": "end"
}, },
"scripts": { "scripts": {
"installation": { "installation": {
"script": "#!\/bin\/bash\r\n# VIAaaS Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y curl\r\n\r\ncd \/mnt\/server\r\n\r\ncurl -Lf -o ${SERVER_JARFILE} \"https:\/\/jitpack.io\/com\/github\/ViaVersion\/VIAaaS\/master-SNAPSHOT\/VIAaaS-master-SNAPSHOT-all.jar\"", "script": "#!\/bin\/ash\r\n# VIAaaS Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\ncd \/mnt\/server\r\nwget -O ${SERVER_JARFILE} \"https:\/\/jitpack.io\/com\/github\/ViaVersion\/VIAaaS\/master-SNAPSHOT\/VIAaaS-master-SNAPSHOT-all.jar\"",
"container": "debian:buster-slim", "container": "ghcr.io/pterodactyl/installers:alpine",
"entrypoint": "bash" "entrypoint": "ash"
} }
}, },
"variables": [ "variables": [
{ {
"name": "VIAaaS Jar File", "name": "VIAaaS JAR File",
"description": "The name of the jarfile to be used when downloading & running VIAaaS.", "description": "The name of the JAR file to be used when downloading & running VIAaaS.",
"env_variable": "SERVER_JARFILE", "env_variable": "SERVER_JARFILE",
"default_value": "VIAaaS-all.jar", "default_value": "VIAaaS-all.jar",
"user_viewable": true, "user_viewable": true,
@ -38,8 +39,8 @@
"rules": "required|string" "rules": "required|string"
}, },
{ {
"name": "Webserver Port", "name": "Web Server Port",
"description": "The port to listen to webserver connections on.", "description": "The port to listen to web server connections on.",
"env_variable": "WEBSERVER_PORT", "env_variable": "WEBSERVER_PORT",
"default_value": "25543", "default_value": "25543",
"user_viewable": true, "user_viewable": true,