|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 38 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/9/download/egg-languagetool.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-02T14:41:01+00:00",
|
|
8
|
|
"name": "LanguageTool",
|
|
9
|
|
"author": "thomasruhl@live.de",
|
|
10
|
|
"uuid": "4474d20a-6f03-4747-977a-d0423377d91f",
|
|
11
|
|
"description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot find.\r\n\r\nView https://languagetool.org for more information.",
|
|
12
|
|
"features": null,
|
|
13
|
|
"docker_images": {
|
|
14
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_17": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_17"
|
|
15
|
|
},
|
|
16
|
|
"file_denylist": [],
|
|
17
|
|
"startup": "java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port {{SERVER_PORT}} --allow-origin --public --config config.properties",
|
|
18
|
|
"config": {
|
|
19
|
|
"files": "{\r\n \"config.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"languageModel\": \"models/\"\r\n }\r\n }\r\n}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Server started\"\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"stop": "^C"
|
|
23
|
|
},
|
|
24
|
|
"scripts": {
|
|
25
|
|
"installation": {
|
|
26
|
|
"script": "#!/bin/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p /mnt/server\r\nmkdir -p /mnt/server/models\r\ntouch config.properties\r\n\r\n# if TRAIN_MODELS has content install them\r\nif [ -n TRAIN_MODELS ]; then\r\n\r\n content=$(curl -L https://languagetool.org/download/ngram-data/)\r\n\r\n links=$(echo \"$content\" | grep -o '<a href=\"[^\"]*\\.zip\">' | sed 's/<a href=\"//' | sed 's/\">//')\r\n echo $links\r\n\r\n cd /mnt/server/models\r\n for model in $TRAIN_MODELS; do\r\n echo \"$model\"\r\n for link in $links; do\r\n # echo \" $link\"\r\n if [[ $link == *\"-$model-\"* ]]; then\r\n fullLink=\"https://languagetool.org/download/ngram-data/$link\"\r\n echo \"Downloading $fullLink\"\r\n echo \"this could take some while\"\r\n curl $fullLink --output $model.zip\r\n echo \"unziping $model.zip\"\r\n unzip $model.zip\r\n rm $model.zip\r\n fi\r\n done\r\n done\r\nfi\r\n\r\n# main languagetool install\r\ncd /mnt/server\r\n\r\necho \"downloading languagetool\"\r\ncurl https://languagetool.org/download/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\n\r\ncp -r LanguageTool-*/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\n\r\necho Finished install",
|
|
27
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:alpine",
|
|
28
|
|
"entrypoint": "ash"
|
|
29
|
|
}
|
|
30
|
|
},
|
|
31
|
|
"variables": [
|
|
32
|
|
{
|
|
33
|
|
"name": "Include traindata",
|
|
34
|
|
"description": "This uses many gigabytes of disk space. \r\n\r\nSeparate each value with spaces. For example, \"de en\". \r\n\r\nView all available models at https://languagetool.org/download/ngram-data/",
|
|
35
|
|
"env_variable": "TRAIN_MODELS",
|
|
36
|
|
"default_value": "",
|
|
37
|
|
"user_viewable": true,
|
|
38
|
|
"user_editable": true,
|
|
39
|
|
"rules": "nullable|string",
|
|
40
|
|
"sort": null,
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
}
|
|
43
|
|
]
|
|
44
|
|
}
|