mirror of
				https://github.com/pelican-eggs/eggs.git
				synced 2025-11-03 18:38:07 +00:00 
			
		
		
		
	A new egg feature modal was introduced in Panel v1.7.0 triggering when server has run out of disk space to provide more user-friendly instructions to both admins and normal users. This is unique to SteamCMD specific errors.
		
			
				
	
	
		
			80 lines
		
	
	
		
			5.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			80 lines
		
	
	
		
			5.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
 | 
						|
    "meta": {
 | 
						|
        "version": "PTDL_v1",
 | 
						|
        "update_url": null
 | 
						|
    },
 | 
						|
    "exported_at": "2021-11-14T10:56:47+01:00",
 | 
						|
    "name": "SCP:SL - Exiled",
 | 
						|
    "author": "info@goover.de",
 | 
						|
    "description": "Egg for SCP: Secret Laboratory Dedicated Linux Server with Exiled Plugin Framework",
 | 
						|
    "features": [
 | 
						|
        "steam_disk_space"
 | 
						|
    ],
 | 
						|
    "images": [
 | 
						|
        "ghcr.io\/parkervcp\/yolks:mono_latest"
 | 
						|
    ],
 | 
						|
    "file_denylist": [],
 | 
						|
    "startup": ".\/LocalAdmin {{SERVER_PORT}}",
 | 
						|
    "config": {
 | 
						|
        "files": "{}",
 | 
						|
        "startup": "{\r\n    \"done\": \"Waiting for players..\"\r\n}",
 | 
						|
        "logs": "{\r\n    \"custom\": false,\r\n    \"location\": \"logs\/latest.log\"\r\n}",
 | 
						|
        "stop": "EXIT"
 | 
						|
    },
 | 
						|
    "scripts": {
 | 
						|
        "installation": {
 | 
						|
            "script": "#!\/bin\/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n# Image to install with is 'debian:buster-slim'\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates jq file unzip wget\r\n\r\n## just in case someone removed the defaults.\r\nif [ \"${STEAM_USER}\" == \"\" ]; then\r\n    echo -e \"steam user is not set.\\n\"\r\n    echo -e \"Using anonymous user.\\n\"\r\n    STEAM_USER=anonymous\r\n    STEAM_PASS=\"\"\r\n    STEAM_AUTH=\"\"\r\nelse\r\n    echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nchmod -R +rw \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +force_install_dir \/mnt\/server +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\nmkdir -p $HOME\/.config\r\n\r\n# Install Exiled\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n    if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n    else\r\n        echo -e \"defaulting to latest release\"\r\n        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n    fi\r\nfi\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\nwget ${DOWNLOAD_LINK}\r\ntar xzvf Exiled.tar.gz\r\n\r\nmv -f Assembly-CSharp.dll \/mnt\/server\/SCPSL_Data\/Managed\r\nmv -f EXILED \/mnt\/server\/.config\/",
 | 
						|
            "container": "ghcr.io\/parkervcp\/installers:debian",
 | 
						|
            "entrypoint": "bash"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "variables": [
 | 
						|
        {
 | 
						|
            "name": "SRCDS_APPID",
 | 
						|
            "description": "",
 | 
						|
            "env_variable": "SRCDS_APPID",
 | 
						|
            "default_value": "996560",
 | 
						|
            "user_viewable": true,
 | 
						|
            "user_editable": false,
 | 
						|
            "rules": "required|string|max:20"
 | 
						|
        },
 | 
						|
        {
 | 
						|
            "name": "Dotnet Bundle",
 | 
						|
            "description": "Only used for EXILED Framework Updater.",
 | 
						|
            "env_variable": "DOTNET_BUNDLE_EXTRACT_BASE_DIR",
 | 
						|
            "default_value": ".\/dotnet-bundle",
 | 
						|
            "user_viewable": false,
 | 
						|
            "user_editable": false,
 | 
						|
            "rules": "required|string"
 | 
						|
        },
 | 
						|
        {
 | 
						|
            "name": "Github Package",
 | 
						|
            "description": "",
 | 
						|
            "env_variable": "GITHUB_PACKAGE",
 | 
						|
            "default_value": "Exiled-Team\/EXILED",
 | 
						|
            "user_viewable": false,
 | 
						|
            "user_editable": false,
 | 
						|
            "rules": "required|string|max:50"
 | 
						|
        },
 | 
						|
        {
 | 
						|
            "name": "Version",
 | 
						|
            "description": "",
 | 
						|
            "env_variable": "VERSION",
 | 
						|
            "default_value": "latest",
 | 
						|
            "user_viewable": true,
 | 
						|
            "user_editable": true,
 | 
						|
            "rules": "required|string|max:20"
 | 
						|
        },
 | 
						|
        {
 | 
						|
            "name": "Match",
 | 
						|
            "description": "",
 | 
						|
            "env_variable": "MATCH",
 | 
						|
            "default_value": "Exiled.tar.gz",
 | 
						|
            "user_viewable": false,
 | 
						|
            "user_editable": false,
 | 
						|
            "rules": "required|string|max:20"
 | 
						|
        }
 | 
						|
    ]
 | 
						|
}
 |