Update TeaSpeak Egg to be able to install latest Beta
This commit is contained in:
		| @@ -3,10 +3,11 @@ | |||||||
|     "meta": { |     "meta": { | ||||||
|         "version": "PTDL_v1" |         "version": "PTDL_v1" | ||||||
|     }, |     }, | ||||||
|     "exported_at": "2020-03-28T13:50:13-04:00", |     "exported_at": "2020-12-05T10:34:29+01:00", | ||||||
|     "name": "TeaSpeak", |     "name": "TeaSpeak", | ||||||
|     "author": "parker@parkervcp.com", |     "author": "parker@parkervcp.com", | ||||||
|     "description": "TeaSpeak is a free to use client and server software for VoIP communication.\r\n\r\nIts the ideal deal software for everyone who is annoyed about limits and restrictions.", |     "description": "TeaSpeak is a free to use client and server software for VoIP communication.\r\n\r\nIts the ideal deal software for everyone who is annoyed about limits and restrictions.", | ||||||
|  |     "features": null, | ||||||
|     "image": "quay.io\/parkervcp\/pterodactyl-images:base_debian", |     "image": "quay.io\/parkervcp\/pterodactyl-images:base_debian", | ||||||
|     "startup": ".\/TeaSpeakServer --property:binding.query.port={{QUERY_PORT}} --property:binding.file.port={{FILE_PORT}} --property:voice.default_port={{SERVER_PORT}}", |     "startup": ".\/TeaSpeakServer --property:binding.query.port={{QUERY_PORT}} --property:binding.file.port={{FILE_PORT}} --property:voice.default_port={{SERVER_PORT}}", | ||||||
|     "config": { |     "config": { | ||||||
| @@ -17,7 +18,7 @@ | |||||||
|     }, |     }, | ||||||
|     "scripts": { |     "scripts": { | ||||||
|         "installation": { |         "installation": { | ||||||
|             "script": "#!\/bin\/bash\r\n \r\n## install required packages\r\napt update\r\napt upgrade -y\r\napt install curl -y\r\n\r\n## make and change to directory\r\nmkdir \/mnt\/server\r\ncd \/mnt\/server\/\r\n\r\n## get download link\r\nif [ \"${VERSION}\" == \"\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    DOWNLOAD_URL=$(echo \"https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/TeaSpeak-$(curl -sSLk https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/latest).tar.gz\")\r\nelse\r\n    DOWNLOAD_URL=$(echo \"https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/TeaSpeak-${VERSION}.tar.gz\")\r\nfi\r\n\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n    if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n        echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n        DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n    else        \r\n        echo -e \"link is invalid closing out\"\r\n        exit 2\r\n    fi\r\nfi\r\n\r\n## download files\r\necho -e \"running: curl -sSL -o teaspeak.tar.gz ${DOWNLOAD_LINK}\"\r\ncurl -sSL -o teaspeak.tar.gz ${DOWNLOAD_LINK}\r\n\r\n## unpack files\r\necho -e \"unpacking files\"\r\ntar xzvf teaspeak.tar.gz\r\n\r\necho -e \"install complete\"", |             "script": "#!\/bin\/bash\r\n \r\n## install required packages\r\napt update\r\napt upgrade -y\r\napt install curl -y\r\n\r\n## make and change to directory\r\nmkdir \/mnt\/server\r\ncd \/mnt\/server\/\r\n\r\n## get download link\r\nif [ \"${VERSION}\" == \"\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    DOWNLOAD_URL=$(echo \"https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/TeaSpeak-$(curl -sSLk https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/latest).tar.gz\")\r\nelif [ \"${VERSION}\" == \"\" ] || [ \"${VERSION}\" == \"beta\" ]; then\r\n    DOWNLOAD_URL=$(echo \"https:\/\/repo.teaspeak.de\/server\/linux\/amd64_nightly\/TeaSpeak-$(curl -sSLk https:\/\/repo.teaspeak.de\/server\/linux\/amd64_nightly\/latest).tar.gz\")\r\nelse\r\n    DOWNLOAD_URL=$(echo \"https:\/\/repo.teaspeak.de\/server\/linux\/amd64\/TeaSpeak-${VERSION}.tar.gz\")\r\nfi\r\n\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n    if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n        echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n        DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n    else        \r\n        echo -e \"link is invalid closing out\"\r\n        exit 2\r\n    fi\r\nfi\r\n\r\n## download files\r\necho -e \"running: curl -sSL -o teaspeak.tar.gz ${DOWNLOAD_LINK}\"\r\ncurl -sSL -o teaspeak.tar.gz ${DOWNLOAD_LINK}\r\n\r\n## unpack files\r\necho -e \"unpacking files\"\r\ntar xzvf teaspeak.tar.gz\r\n\r\necho -e \"install complete\"", | ||||||
|             "container": "debian:buster-slim", |             "container": "debian:buster-slim", | ||||||
|             "entrypoint": "bash" |             "entrypoint": "bash" | ||||||
|         } |         } | ||||||
| @@ -28,8 +29,8 @@ | |||||||
|             "description": "The query port for TeaSpeak", |             "description": "The query port for TeaSpeak", | ||||||
|             "env_variable": "QUERY_PORT", |             "env_variable": "QUERY_PORT", | ||||||
|             "default_value": "10101", |             "default_value": "10101", | ||||||
|             "user_viewable": 1, |             "user_viewable": true, | ||||||
|             "user_editable": 1, |             "user_editable": true, | ||||||
|             "rules": "required|numeric|max:65535" |             "rules": "required|numeric|max:65535" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -37,8 +38,8 @@ | |||||||
|             "description": "The TeaSpeak File Transfer Port", |             "description": "The TeaSpeak File Transfer Port", | ||||||
|             "env_variable": "FILE_PORT", |             "env_variable": "FILE_PORT", | ||||||
|             "default_value": "30303", |             "default_value": "30303", | ||||||
|             "user_viewable": 1, |             "user_viewable": true, | ||||||
|             "user_editable": 1, |             "user_editable": true, | ||||||
|             "rules": "required|numeric|max:65535" |             "rules": "required|numeric|max:65535" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -46,8 +47,8 @@ | |||||||
|             "description": "The TeaSpeak Server MOTD", |             "description": "The TeaSpeak Server MOTD", | ||||||
|             "env_variable": "SERVER_MOTD", |             "env_variable": "SERVER_MOTD", | ||||||
|             "default_value": "TeaSpeak\\n\\rHosted on pterodactyl!", |             "default_value": "TeaSpeak\\n\\rHosted on pterodactyl!", | ||||||
|             "user_viewable": 1, |             "user_viewable": true, | ||||||
|             "user_editable": 1, |             "user_editable": true, | ||||||
|             "rules": "required|string|max:128" |             "rules": "required|string|max:128" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -55,8 +56,8 @@ | |||||||
|             "description": "Don't touch this if you want the server to start", |             "description": "Don't touch this if you want the server to start", | ||||||
|             "env_variable": "LD_LIBRARY_PATH", |             "env_variable": "LD_LIBRARY_PATH", | ||||||
|             "default_value": ".\/libs\/", |             "default_value": ".\/libs\/", | ||||||
|             "user_viewable": 0, |             "user_viewable": false, | ||||||
|             "user_editable": 0, |             "user_editable": false, | ||||||
|             "rules": "required|string" |             "rules": "required|string" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -64,8 +65,8 @@ | |||||||
|             "description": "Don't touch this if you want the server to start", |             "description": "Don't touch this if you want the server to start", | ||||||
|             "env_variable": "LD_PRELOAD", |             "env_variable": "LD_PRELOAD", | ||||||
|             "default_value": ".\/libs\/libjemalloc.so.2", |             "default_value": ".\/libs\/libjemalloc.so.2", | ||||||
|             "user_viewable": 0, |             "user_viewable": false, | ||||||
|             "user_editable": 0, |             "user_editable": false, | ||||||
|             "rules": "required|string" |             "rules": "required|string" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -73,8 +74,8 @@ | |||||||
|             "description": "What version of teaspeak to install", |             "description": "What version of teaspeak to install", | ||||||
|             "env_variable": "VERSION", |             "env_variable": "VERSION", | ||||||
|             "default_value": "latest", |             "default_value": "latest", | ||||||
|             "user_viewable": 1, |             "user_viewable": true, | ||||||
|             "user_editable": 1, |             "user_editable": true, | ||||||
|             "rules": "required|string|max:20" |             "rules": "required|string|max:20" | ||||||
|         } |         } | ||||||
|     ] |     ] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user