fix the 🥚

This commit is contained in:
Isaac 2021-05-26 21:37:52 +01:00
parent e2f53ddb88
commit 794d11af1d
No known key found for this signature in database
GPG Key ID: F6812DBC6719B4E3

View File

@ -4,7 +4,7 @@
"version": "PTDL_v1", "version": "PTDL_v1",
"update_url": null "update_url": null
}, },
"exported_at": "2021-05-26T15:57:45+02:00", "exported_at": "2021-05-26T22:36:43+02:00",
"name": "Discord Tickets", "name": "Discord Tickets",
"author": "contact@eartharoid.me", "author": "contact@eartharoid.me",
"description": "https:\/\/discordtickets.app", "description": "https:\/\/discordtickets.app",
@ -13,7 +13,7 @@
"quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14" "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14"
], ],
"file_denylist": [], "file_denylist": [],
"startup": "if [[ -z ${VERSION} ]]; then\r\n\techo -e \\\"Please set the VERSION variable (e.g. v3.0.0)\\\"\r\n\texit 0\r\nfi\r\n\r\nif [[ -d .git ]]; then\r\n\tgit fetch --all --tags;\r\n\tgit checkout tags\/${VERSION};\r\nfi;\r\n\r\nif [[ ! -z ${PLUGINS} ]]; then\r\n\t\/usr\/local\/bin\/npm install ${PLUGINS};\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\n\/usr\/local\/bin\/npm start", "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.0.0\\)\\\";\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 [[ ! -z ${PLUGINS} ]]; then\r\n \/usr\/local\/bin\/npm install ${PLUGINS};\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\n\/usr\/local\/bin\/npm start",
"config": { "config": {
"files": "{}", "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}", "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}",
@ -22,7 +22,7 @@
}, },
"scripts": { "scripts": {
"installation": { "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\techo -e \\\"Please set the VERSION variable (e.g. v3.0.0)\\\"\r\n\texit 0\r\nfi\r\n\r\nif [ \\\"$(ls -A \/mnt\/server)\\\" ]; then\r\n\techo \\\"Upating...\\\"\r\n\tgit fetch --all --tags\r\n\tgit checkout tags\/${VERSION}\r\nelse\r\n\techo -e \\\"Cloning...\\\"\r\n\tgit clone https:\/\/github.com\/discord-tickets\/bot.git .\r\nfi\r\n\r\necho \\\"Installing plugins\\\"\r\nif [[ ! -z ${PUGINS} ]]; then\r\n\t\/usr\/local\/bin\/npm install ${PUGINS}\r\nfi\r\n\r\necho \\\"Installing common dependencies\\\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n\t\/usr\/local\/bin\/npm install --production\r\nfi\r\n\r\necho -e \\\"Installed\\\"\r\nexit 0", "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:14-buster-slim",
"entrypoint": "bash" "entrypoint": "bash"
} }