Add files via upload

Added an option to install wordpress with the egg
This commit is contained in:
finnie2006 authored and GitHub committed 2022-06-23 23:01:19 +02:00
1 parent 9475439db6
commit 43d5711e05
1 file changed
+18 -8
+18 -8
View File
@@ -1,18 +1,17 @@
{ {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": { "meta": {
"version": "PTDL_v1", "version": "PTDL_v2",
"update_url": null "update_url": null
}, },
"exported_at": "2022-02-15T21:19:52+02:00", "exported_at": "2022-06-23T22:19:00+02:00",
"name": "Nginx", "name": "Nginx",
"author": "[email protected]", "author": "[email protected]",
"description": "An Nginx egg to host any Website", "description": "An Nginx egg to host any Website",
"features": null, "features": null,
"images": [ "docker_images": {
"ghcr.io\/finnie2006\/nginx-ptero", "ghcr.io\/finnie2006\/nginx-ptero": "ghcr.io\/finnie2006\/nginx-ptero"
"ghcr.io\/finnie2006\/nginx-ptero:composer" },
],
"file_denylist": [], "file_denylist": [],
"startup": "{{STARTUP_CMD}}", "startup": "{{STARTUP_CMD}}",
"config": { "config": {
@@ -23,7 +22,7 @@
}, },
"scripts": { "scripts": {
"installation": { "installation": {
"script": "#!\/bin\/ash\r\n\r\ncd \/mnt\/server\r\n\r\napk --update add git\r\n\r\ngit clone https:\/\/github.com\/finnie2006\/ptero-nginx .\/temp\r\n\r\ncp -r .\/temp\/nginx \/mnt\/server\/\r\ncp -r .\/temp\/php-fpm \/mnt\/server\/\r\ncp -r .\/temp\/webroot \/mnt\/server\/\r\ncp .\/temp\/start.sh \/mnt\/server\/\r\n\r\nchmod +x \/mnt\/server\/start.sh\r\n\r\nrm -rf .\/temp", "script": "#!\/bin\/ash\r\n\r\ncd \/mnt\/server\r\n\r\napk --update add git\r\n\r\ngit clone https:\/\/github.com\/finnie2006\/ptero-nginx .\/temp\r\n\r\ncp -r .\/temp\/nginx \/mnt\/server\/\r\ncp -r .\/temp\/php-fpm \/mnt\/server\/\r\ncp -r .\/temp\/webroot \/mnt\/server\/\r\ncp .\/temp\/start.sh \/mnt\/server\/\r\nchmod +x \/mnt\/server\/start.sh\r\nrm -rf .\/temp\r\n\r\nif [ \"${WORDPRESS}\" == \"true\" ] || [ \"${WORDPRESS}\" == \"1\" ]; then\r\n echo -e \"Installing wordpress\"\r\n cd \/mnt\/server\/webroot\r\n wget http:\/\/wordpress.org\/latest.tar.gz\r\n tar xzf latest.tar.gz\r\n mv wordpress\/* .\r\n rm -rf wordpress latest.tar.gz\r\n echo -e \"Install complete go to: \"\r\n exit 0\r\nfi",
"container": "alpine:latest", "container": "alpine:latest",
"entrypoint": "ash" "entrypoint": "ash"
} }
@@ -36,7 +35,18 @@
"default_value": ".\/start.sh", "default_value": ".\/start.sh",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "present" "rules": "present",
"field_type": "text"
},
{
"name": "Wordpress",
"description": "Enable or disable Wordpress\r\n\r\n0 = false (default)\r\n1 = true",
"env_variable": "WORDPRESS",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
} }
] ]
} }