DiscordTickets/pterodactyl.egg.json

50 lines
3.4 KiB
JSON
Raw Normal View History

2021-05-26 17:07:54 +03:00
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1",
"update_url": null
},
2021-05-26 23:42:05 +03:00
"exported_at": "2021-05-26T22:41:44+02:00",
2021-05-26 17:07:54 +03:00
"name": "Discord Tickets",
2021-09-25 02:05:39 +03:00
"author": "contact@discordtickets.app",
2021-05-26 17:07:54 +03:00
"description": "https:\/\/discordtickets.app",
"features": null,
"images": [
"quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-16"
2021-05-26 17:07:54 +03:00
],
"file_denylist": [],
2021-09-26 01:56:12 +03:00
"startup": "if [[ ! -z ${VERSION} ]]; then\r\n echo -e \\\"Using version ${VERSION}\\\";\r\nelse\r\n echo -e \\\"Please set the VERSION variable \\(e.g. v3.1.1\\)\\\";\r\n exit 0;\r\nfi;\r\n\r\nif [[ -d .git ]]; then\r\n git fetch --all --tags;\r\n git checkout tags\/${VERSION};\r\nfi;\r\n\r\nif [ -f \/home\/container\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --production;\r\nfi;\r\n\r\nif [[ ! -z ${PLUGINS} ]]; then\r\n \/usr\/local\/bin\/npm install ${PLUGINS} --no-save;\r\nfi;\r\n\r\n\/usr\/local\/bin\/npm start",
2021-05-26 17:07:54 +03:00
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Connected to Discord as \",\r\n \"userInteraction\": [\r\n \"Please set your bot's \\\"DISCORD_TOKEN\\\" in \\\".\/.env\\\".\"\r\n ]\r\n}",
"logs": "{}",
2021-05-26 23:42:05 +03:00
"stop": "^C^C"
2021-05-26 17:07:54 +03:00
},
"scripts": {
"installation": {
2021-05-26 23:37:52 +03:00
"script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ python python-dev libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [[ ! -z ${VERSION} ]]; then\r\n echo -e \\\"Using version ${VERSION}\\\"\r\nelse\r\n echo -e \\\"Please set the VERSION variable \\(e.g. v3.0.0\\)\\\"\r\n exit 1\r\nfi\r\n\r\nif [ \\\"$(ls -A \/mnt\/server)\\\" ] && [[ -d .git ]]; then\r\n echo -e \\\".git directory exists\\\"\r\n if [ -f .git\\\/config ]; then\r\n echo \\\"Upating...\\\"\r\n git fetch --all --tags\r\n git checkout tags\/${VERSION}\r\n else\r\n echo -e \\\"files found with no git config\\\"\r\n echo -e \\\"closing out without touching things to not break anything\\\"\r\n exit 1\r\n fi\r\nelse\r\n echo -e \\\"Cloning...\\\"\r\n git clone https:\/\/github.com\/discord-tickets\/bot.git .\r\n\tgit checkout tags\/${VERSION}\r\nfi\r\n\r\necho \\\"Installing dependencies\\\"\r\n\r\nif [[ ! -z ${PUGINS} ]]; then\r\n \/usr\/local\/bin\/npm install ${PUGINS}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --production\r\nfi\r\n\r\necho -e \\\"Installed\\\"\r\nexit 0",
2021-05-26 17:07:54 +03:00
"container": "node:14-buster-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Version",
"description": "The version of the bot to use.",
"env_variable": "VERSION",
2021-09-26 01:56:12 +03:00
"default_value": "v3.1.1",
2021-05-26 17:07:54 +03:00
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
},
{
"name": "Plugins",
"description": "A list of extra NPM package names to install as plugins, separated by a space: \"example1 exmaple2 example3\"",
"env_variable": "PLUGINS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string"
}
]
}