-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55b9fa2
commit 0ad4da4
Showing
5 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Redon Hub Ignores | ||
config.json | ||
*.log | ||
*-pegg.json | ||
.cache | ||
.npm | ||
|
||
# MKDocs ignores | ||
/site | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | ||
"meta": { | ||
"version": "PTDL_v2", | ||
"update_url": null | ||
}, | ||
"exported_at": "2023-05-08T09:46:41-10:00", | ||
"name": "Redon Hub", | ||
"author": "parker02311@redon.tech", | ||
"description": "Redon Hub Pterodactyl Egg", | ||
"features": null, | ||
"docker_images": { | ||
"ghcr.io\/parkervcp\/yolks:python_3.9": "ghcr.io\/parkervcp\/yolks:python_3.9" | ||
}, | ||
"file_denylist": [], | ||
"startup": "if [[ ! -z ${VERSION} ]]; then\r\n echo -e \"Using version ${VERSION}\";\r\nelse\r\n echo -e \"Please set the VERSION variable\";\r\n exit 0;\r\nfi;\r\n\r\nif [[ -d .git ]] && [[ -z ${MODFILES} ]]; then\r\n echo -e \"Forcing git checkout\";\r\n git fetch --all --tags;\r\n git checkout tags\/${VERSION} -f;\r\nelif [[ -d .git ]] && [[ ! -z ${MODFILES} ]]; then\r\n echo -e \"User modify files enabled\";\r\n git fetch --all --tags;\r\n git checkout tags\/${VERSION};\r\nfi;\r\n\r\nif [ -f \/home\/container\/requirements.txt ]; then\r\n pip install -U --prefix .local -r \/home\/container\/requirements.txt;\r\nfi;\r\n\r\n\/usr\/local\/bin\/python -m prisma generate --schema mysql-schema.prisma;\r\n\r\n\/usr\/local\/bin\/python \/home\/container\/launcher.py;", | ||
"config": { | ||
"files": "{}", | ||
"startup": "{\r\n \"done\": \"Database Connected\"\r\n}", | ||
"logs": "{}", | ||
"stop": "^C" | ||
}, | ||
"scripts": { | ||
"installation": { | ||
"script": "#!\/bin\/bash\r\n# Python Bot Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ python python-dev libtool libmariadb-dev\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\"\r\n exit 1\r\nfi\r\n\r\nGIT_ADDRESS=${GITREPO}\r\n\r\n## pull git\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"\/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \".git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\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 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"${GIT_ADDRESS}\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"\/mnt\/server is empty.\\ncloning files into repo\"\r\n git clone ${GIT_ADDRESS} .\r\n git checkout tags\/${VERSION}\r\nfi\r\n\r\nexport HOME=\/mnt\/server\r\n\r\n\r\nif [ -f \/mnt\/server\/requirements.txt ]; then\r\n echo -e \"Installing python requirements into folder\"\r\n pip install -U --prefix .local -r \/mnt\/server\/requirements.txt\r\nfi\r\n\r\necho -e \"${OPENCLOUD}\"\r\nif [ \"${OPENCLOUD}\" == \"false\" ] || [ \"${OPENCLOUD}\" == \"0\" ]; then\r\n echo -e \"Open cloud disabled, generating mysql-schema\"\r\n python -m prisma generate --schema \/mnt\/server\/mysql-schema.prisma\r\nfi\r\n\r\necho -e \"install complete\"\r\nexit 0", | ||
"container": "python:3.9-slim", | ||
"entrypoint": "bash" | ||
} | ||
}, | ||
"variables": [ | ||
{ | ||
"name": "version", | ||
"description": "The version of the bot to use.", | ||
"env_variable": "version", | ||
"default_value": "1.0-RC.1", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "required|string", | ||
"field_type": "text" | ||
}, | ||
{ | ||
"name": "modify files", | ||
"description": "Enable modification of files.", | ||
"env_variable": "modfiles", | ||
"default_value": "1", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "required|boolean", | ||
"field_type": "text" | ||
}, | ||
{ | ||
"name": "Git Source", | ||
"description": "Source git repo", | ||
"env_variable": "gitrepo", | ||
"default_value": "https:\/\/github.com\/Redon-Tech\/Redon-Hub", | ||
"user_viewable": false, | ||
"user_editable": false, | ||
"rules": "required|string", | ||
"field_type": "text" | ||
}, | ||
{ | ||
"name": "Uses Open Cloud", | ||
"description": "If you use open cloud please enable this, this prevents the script from running prisma generate.", | ||
"env_variable": "opencloud", | ||
"default_value": "0", | ||
"user_viewable": true, | ||
"user_editable": false, | ||
"rules": "required|boolean", | ||
"field_type": "text" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters