From b03b9885a7e75a0bf1838907144261c912b8c0da Mon Sep 17 00:00:00 2001 From: parkervcp Date: Fri, 16 Oct 2020 22:37:41 -0400 Subject: [PATCH] update cryofall install script --- cryofall/{ => cryofall}/README.md | 0 cryofall/{ => cryofall}/egg-cryo-fall.json | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) rename cryofall/{ => cryofall}/README.md (100%) rename cryofall/{ => cryofall}/egg-cryo-fall.json (60%) diff --git a/cryofall/README.md b/cryofall/cryofall/README.md similarity index 100% rename from cryofall/README.md rename to cryofall/cryofall/README.md diff --git a/cryofall/egg-cryo-fall.json b/cryofall/cryofall/egg-cryo-fall.json similarity index 60% rename from cryofall/egg-cryo-fall.json rename to cryofall/cryofall/egg-cryo-fall.json index a94781d4..4f17f02e 100644 --- a/cryofall/egg-cryo-fall.json +++ b/cryofall/cryofall/egg-cryo-fall.json @@ -3,7 +3,7 @@ "meta": { "version": "PTDL_v1" }, - "exported_at": "2020-10-11T17:48:30+02:00", + "exported_at": "2020-10-17T02:36:40+00:00", "name": "CryoFall", "author": "contact@zennodes.dk", "description": "NOTE: For now you have to change SettingsServer.xml under CryoFall_Server_v(Version)_NetCore\/Data\/SettingsServer.xml\r\n\r\nCryoFall is a sci-fi multiplayer colony simulation survival game set on a forgotten planet in a distant future.\r\n\r\nJoin the vast world of CryoFall together with other survivors to rebuild your civilization from scratch. Start with primitive technology and simple tools and use them to progress towards modern industrial might and even beyond, eventually reaching space-age technology only seen in science fiction.\r\n\r\nCryoFall can be played either as a relaxed PvE experience with no competition or as a brutal and unforgiving PvP. Make your choice and join one of many available servers with different game modes or host your own and invite your friends to join you!\r\n\r\nBuild your house or a large base together with other players. Dig wells and create farms to sustain basic needs. Build vehicles to explore the world faster. Establish basics of science, all the way from medicine and chemistry to fuel creation and even lithium extraction to create electronic devices. Cook food or prepare drinks to sell them from vending machines in your store.\r\n\r\nBuild factories to produce on an industrial scale: Weapons and defense systems, bionic implants to augment yourself, even large war machines and artillery guns to use against the biggest of opponents", @@ -17,9 +17,9 @@ }, "scripts": { "installation": { - "script": "#Server Files: \/mnt\/server\r\nrm -rf \/mnt\/server\r\n\r\napk update\r\n\r\napk add curl\r\n\r\ncd \/mnt\/server\r\n\r\ncurl -sSL https:\/\/wiki.atomictorch.com\/CryoFall\/Server\/Setup | grep 'SERVER DOWNLOAD' | grep -Eoi ']+>' | grep -Eo 'href=\\\"[^\\\\\\\"]+\\\"' | grep -Eo '(http|https):\\\/\\\/[^\\\"]+' | tail -1 | cut -d'?' -f1\r\n\r\nunzip Cryofall_server_v${VERSION}.zip\r\n\r\ncp -a CryoFall_Server_v${VERSION}_NetCore\/. \/mnt\/server\r\n\r\nrm -rf CryoFall_Server_v${VERSION}_NetCore\r\n\r\nrm -rf Cryofall_server_v${VERSION}.zip", - "container": "alpine:3.9", - "entrypoint": "ash" + "script": "#!\/bin\/bash\r\n#Server Files: \/mnt\/server\r\napt update\r\napt install -y curl zip unzip\r\n\r\nif [[ ! -d \/mnt\/server\/ ]]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\r\n\r\nif [ \"${VERSION}\" == \"latest\" ] || [ \"${VERSION}\" == \"\" ]; then\r\n DOWNLOAD_URL=$(curl -sSL https:\/\/wiki.atomictorch.com\/CryoFall\/Server\/Setup | grep 'SERVER DOWNLOAD' | grep -Eoi ']+>' | grep -Eo 'href=\\\"[^\\\\\\\"]+\\\"' | grep -Eo '(http|https):\\\/\\\/[^\\\"]+' | tail -1 | cut -d'?' -f1)\r\nelse\r\n DOWNLOAD_URL=https:\/\/atomictorch.com\/Files\/CryoFall_Server_v${VERSION}_NetCore.zip\r\nfi\r\n\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -L -o cryofall_server.zip ${DOWNLOAD_LINK}\r\n\r\nunzip cryofall_server.zip\r\n\r\ncp -rf CryoFall_Server*NetCore\/. \/mnt\/server\r\n\r\nrm -rf cryofall_server.zip CryoFall_Server*NetCore\/", + "container": "debian:buster-slim", + "entrypoint": "bash" } }, "variables": [ @@ -27,9 +27,9 @@ "name": "Game server version", "description": "type game server version", "env_variable": "VERSION", - "default_value": "0.27.7.30", - "user_viewable": 1, - "user_editable": 1, + "default_value": "latest", + "user_viewable": true, + "user_editable": true, "rules": "required|string|max:20" } ]