Skip to content

Commit

Permalink
Update the Pterodactyl Egg (discord-tickets#313)
Browse files Browse the repository at this point in the history
Update the pterodactyl egg for discord tickets version 3.1.3 and also update the container for NodeJS 16
  • Loading branch information
RooRay authored May 2, 2022
1 parent 2ea78a1 commit 65f06ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pterodactyl.egg.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"installation": {
"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",
"container": "node:14-buster-slim",
"container": "node:16-bullseye-slim",
"entrypoint": "bash"
}
},
Expand All @@ -32,7 +32,7 @@
"name": "Version",
"description": "The version of the bot to use.",
"env_variable": "VERSION",
"default_value": "v3.1.1",
"default_value": "v3.1.3",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
Expand Down

0 comments on commit 65f06ff

Please sign in to comment.