mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-01 14:38:51 +00:00
Add files via upload
This commit is contained in:
1 parent
f340f45991
commit
623685b561
1 file changed
+3
-3
@@ -4,7 +4,7 @@
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2022-08-14T19:20:10+02:00",
|
||||
"exported_at": "2022-08-14T19:35:51+02:00",
|
||||
"name": "WebHost Egg",
|
||||
"author": "[email protected]",
|
||||
"description": "An egg to host any Website.\r\nit also has composer, just specify your packages in the packages box, and it will install the packages when you start the server, it also has wordpress, just turn on the slider when you make the server, and wordpress will get installed for you\r\n\r\nSigma Productions 2022",
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/ash\r\ncd \/mnt\/server\r\napk --update add git\r\n\r\n# cloning repo with nginx and php files\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\nmkdir \/mnt\/server\/logs\r\nchmod +x \/mnt\/server\/start.sh\r\nrm -rf .\/temp\r\nif [ \"${WORDPRESS}\" == \"false\" ] || [ \"${WORDPRESS}\" == \"0\" ]; then\r\necho -e \"Install complete go to http:\/\/ip:port\/\"\r\nfi\r\n\r\n\r\n#wordpress\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 http:\/\/ip:port\/wp-admin \"\r\n exit 0\r\n \r\n fi",
|
||||
"script": "#!\/bin\/ash\r\ncd \/mnt\/server\r\napk --update add git\r\n\r\n# cloning repo with nginx and php files\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\nmkdir \/mnt\/server\/tmp\r\nmkdir \/mnt\/server\/logs\r\nif [ \"${WORDPRESS}\" == \"false\" ] || [ \"${WORDPRESS}\" == \"0\" ]; then\r\necho -e \"Install complete go to http:\/\/ip:port\/\"\r\nfi\r\n\r\n\r\n#wordpress\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 http:\/\/ip:port\/wp-admin \"\r\n exit 0\r\n \r\n fi",
|
||||
"container": "alpine:latest",
|
||||
"entrypoint": "ash"
|
||||
}
|
||||
@@ -42,7 +42,7 @@
|
||||
"name": "Wordpress",
|
||||
"description": "Enable or disable Wordpress\r\n\r\n0 = false (default)\r\n1 = true",
|
||||
"env_variable": "WORDPRESS",
|
||||
"default_value": "false",
|
||||
"default_value": "0",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "required|boolean",
|
||||
|
||||
Reference in new issue
Block a user