mirror of
				https://github.com/pelican-eggs/eggs.git
				synced 2025-11-04 02:48:07 +00:00 
			
		
		
		
	Merge pull request #1184 from parkervcp/fix_fivem
Work around fivem dummy link
This commit is contained in:
		
						commit
						27b67843b4
					
				@ -1,13 +1,18 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "_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_v1",
 | 
				
			||||||
 | 
					        "update_url": null
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "exported_at": "2020-09-22T16:57:32-04:00",
 | 
					    "exported_at": "2021-06-13T15:23:03-04:00",
 | 
				
			||||||
    "name": "FiveM",
 | 
					    "name": "FiveM",
 | 
				
			||||||
    "author": "parker@parkervcp.com",
 | 
					    "author": "parker@parkervcp.com",
 | 
				
			||||||
    "description": "A new FiveM egg for the latest builds due to recent changes in FiveM",
 | 
					    "description": "A new FiveM egg for the latest builds due to recent changes in FiveM",
 | 
				
			||||||
    "image": "quay.io\/parkervcp\/pterodactyl-images:base_debian",
 | 
					    "features": null,
 | 
				
			||||||
 | 
					    "images": [
 | 
				
			||||||
 | 
					        "quay.io\/parkervcp\/pterodactyl-images:base_debian"
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    "file_denylist": [],
 | 
				
			||||||
    "startup": "$(pwd)\/alpine\/opt\/cfx-server\/ld-musl-x86_64.so.1 --library-path \"$(pwd)\/alpine\/usr\/lib\/v8\/:$(pwd)\/alpine\/lib\/:$(pwd)\/alpine\/usr\/lib\/\" -- $(pwd)\/alpine\/opt\/cfx-server\/FXServer +set citizen_dir $(pwd)\/alpine\/opt\/cfx-server\/citizen\/ +set sv_licenseKey {{FIVEM_LICENSE}} +set steam_webApiKey {{STEAM_WEBAPIKEY}} +set sv_maxplayers {{MAX_PLAYERS}} +set serverProfile default +set txAdminPort {{TXADMIN_PORT}} $( [ \"$TXADMIN_ENABLE\" == \"1\" ] || printf %s '+exec server.cfg' )",
 | 
					    "startup": "$(pwd)\/alpine\/opt\/cfx-server\/ld-musl-x86_64.so.1 --library-path \"$(pwd)\/alpine\/usr\/lib\/v8\/:$(pwd)\/alpine\/lib\/:$(pwd)\/alpine\/usr\/lib\/\" -- $(pwd)\/alpine\/opt\/cfx-server\/FXServer +set citizen_dir $(pwd)\/alpine\/opt\/cfx-server\/citizen\/ +set sv_licenseKey {{FIVEM_LICENSE}} +set steam_webApiKey {{STEAM_WEBAPIKEY}} +set sv_maxplayers {{MAX_PLAYERS}} +set serverProfile default +set txAdminPort {{TXADMIN_PORT}} $( [ \"$TXADMIN_ENABLE\" == \"1\" ] || printf %s '+exec server.cfg' )",
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "files": "{\r\n    \"server.cfg\": {\r\n        \"parser\": \"file\",\r\n        \"find\": {\r\n            \"endpoint_add_tcp\": \"endpoint_add_tcp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n            \"endpoint_add_udp\": \"endpoint_add_udp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n            \"sv_hostname\": \"sv_hostname \\\"{{server.build.env.SERVER_HOSTNAME}}\\\"\",\r\n            \"set sv_licenseKey\": \"set sv_licenseKey {{server.build.env.FIVEM_LICENSE}}\",\r\n            \"set steam_webApiKey\": \"set steam_webApiKey {{server.build.env.STEAM_WEBAPIKEY}}\",\r\n            \"sv_maxclients\": \"sv_maxclients {{server.build.env.MAX_PLAYERS}}\"\r\n        }\r\n    }\r\n}",
 | 
					        "files": "{\r\n    \"server.cfg\": {\r\n        \"parser\": \"file\",\r\n        \"find\": {\r\n            \"endpoint_add_tcp\": \"endpoint_add_tcp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n            \"endpoint_add_udp\": \"endpoint_add_udp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n            \"sv_hostname\": \"sv_hostname \\\"{{server.build.env.SERVER_HOSTNAME}}\\\"\",\r\n            \"set sv_licenseKey\": \"set sv_licenseKey {{server.build.env.FIVEM_LICENSE}}\",\r\n            \"set steam_webApiKey\": \"set steam_webApiKey {{server.build.env.STEAM_WEBAPIKEY}}\",\r\n            \"sv_maxclients\": \"sv_maxclients {{server.build.env.MAX_PLAYERS}}\"\r\n        }\r\n    }\r\n}",
 | 
				
			||||||
@ -17,7 +22,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "installation": {
 | 
					        "installation": {
 | 
				
			||||||
            "script": "#!\/bin\/ash\r\n# FiveM Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update -y\r\napt install -y tar xz-utils curl git file\r\n\r\nmkdir -p \/mnt\/server\/resources\r\n\r\ncd \/mnt\/server\r\n\r\necho \"updating citizenfx resource files\"\r\ngit clone https:\/\/github.com\/citizenfx\/cfx-server-data.git \/tmp\r\ncp -Rf \/tmp\/resources\/* resources\/ \r\n\r\nRELEASE_PAGE=$(curl -sSL https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/)\r\n\r\nif [ \"${FIVEM_VERSION}\" == \"latest\" ] || [ -z ${FIVEM_VERSION} ] ; then\r\n    LATEST_RECOMMENDED=$(echo -e \"${RELEASE_PAGE}\" | grep \"LATEST RECOMMENDED\" -B1 | grep -Eo 'href=\".*\/*.tar.xz\"' | grep -Eo '\".*\"' | sed 's\/\\\"\/\/g' | sed 's\/\\.\\\/\/\/1')\r\n    DOWNLOAD_LINK=$(echo https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${LATEST_RECOMMENDED})\r\nelse\r\n    VERSION_LINK=$(echo -e \"${RELEASE_PAGE}\" | grep -Eo 'href=\".*\/*.tar.xz\"' | grep -Eo '\".*\"' | sed 's\/\\\"\/\/g' | sed 's\/\\.\\\/\/\/1' | grep ${FIVEM_VERSION})\r\n    if [ \"${VERSION_LINK}\" == \"\" ]; then\r\n        echo -e \"defaulting to latest as the version requested was invalid.\"\r\n    else\r\n        DOWNLOAD_LINK=$(echo https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${VERSION_LINK})\r\n    fi\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\necho -e \"Running curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\"\r\n\r\ncurl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\r\n\r\necho \"Extracting fivem files\"\r\n\r\nFILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n    tar xzvf ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n    unzip ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n    tar xvf ${DOWNLOAD_LINK##*\/}\r\nelse\r\n    echo -e \"unknown filetype. Exiting\"\r\n    exit 2 \r\nfi\r\n\r\nrm -rf ${DOWNLOAD_LINK##*\/} run.sh\r\n\r\nif [ -e server.cfg ]; then\r\n    echo \"server config file exists\"\r\nelse\r\n    echo \"Downloading default fivem config\"\r\n    curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/gta\/fivem\/server.cfg >> server.cfg\r\nfi\r\n\r\nmkdir logs\/\r\n\r\necho \"install complete\"",
 | 
					            "script": "#!\/bin\/ash\r\n# FiveM Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update -y\r\napt install -y tar xz-utils curl git file\r\n\r\nmkdir -p \/mnt\/server\/resources\r\n\r\ncd \/mnt\/server\r\n\r\necho \"updating citizenfx resource files\"\r\ngit clone https:\/\/github.com\/citizenfx\/cfx-server-data.git \/tmp\r\ncp -Rf \/tmp\/resources\/* resources\/ \r\n\r\nRELEASE_PAGE=$(curl -sSL https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/)\r\n\r\nif [ \"${FIVEM_VERSION}\" == \"latest\" ] || [ -z ${FIVEM_VERSION} ] ; then\r\n    LATEST_RECOMMENDED=$(echo -e \"${RELEASE_PAGE}\" | grep \"LATEST RECOMMENDED\" -B1 | grep -Eo '\".*\/*.tar.xz\"' | grep -Eo '\".*\"' | sed 's\/\\\"\/\/g' | sed 's\/\\.\\\/\/\/1' | grep -v dummy)\r\n    DOWNLOAD_LINK=$(echo https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${LATEST_RECOMMENDED})\r\nelse\r\n    VERSION_LINK=$(echo -e \"${RELEASE_PAGE}\" | grep -Eo 'href=\".*\/*.tar.xz\"' | grep -Eo '\".*\"' | sed 's\/\\\"\/\/g' | sed 's\/\\.\\\/\/\/1' | grep ${FIVEM_VERSION})\r\n    if [ \"${VERSION_LINK}\" == \"\" ]; then\r\n        echo -e \"defaulting to latest as the version requested was invalid.\"\r\n    else\r\n        DOWNLOAD_LINK=$(echo https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${VERSION_LINK})\r\n    fi\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\necho -e \"Running curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\"\r\n\r\ncurl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\r\n\r\necho \"Extracting fivem files\"\r\n\r\nFILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n    tar xzvf ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n    unzip ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n    tar xvf ${DOWNLOAD_LINK##*\/}\r\nelse\r\n    echo -e \"unknown filetype. Exiting\"\r\n    exit 2 \r\nfi\r\n\r\nrm -rf ${DOWNLOAD_LINK##*\/} run.sh\r\n\r\nif [ -e server.cfg ]; then\r\n    echo \"server config file exists\"\r\nelse\r\n    echo \"Downloading default fivem config\"\r\n    curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/gta\/fivem\/server.cfg >> server.cfg\r\nfi\r\n\r\nmkdir logs\/\r\n\r\necho \"install complete\"",
 | 
				
			||||||
            "container": "debian:buster-slim",
 | 
					            "container": "debian:buster-slim",
 | 
				
			||||||
            "entrypoint": "bash"
 | 
					            "entrypoint": "bash"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -28,8 +33,8 @@
 | 
				
			|||||||
            "description": "Required to start the service. Get your keys at https:\/\/keymaster.fivem.net\/",
 | 
					            "description": "Required to start the service. Get your keys at https:\/\/keymaster.fivem.net\/",
 | 
				
			||||||
            "env_variable": "FIVEM_LICENSE",
 | 
					            "env_variable": "FIVEM_LICENSE",
 | 
				
			||||||
            "default_value": "",
 | 
					            "default_value": "",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 1,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string|max:32"
 | 
					            "rules": "required|string|max:32"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -37,8 +42,8 @@
 | 
				
			|||||||
            "description": "Set the fivem max play count",
 | 
					            "description": "Set the fivem max play count",
 | 
				
			||||||
            "env_variable": "MAX_PLAYERS",
 | 
					            "env_variable": "MAX_PLAYERS",
 | 
				
			||||||
            "default_value": "48",
 | 
					            "default_value": "48",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 0,
 | 
					            "user_editable": false,
 | 
				
			||||||
            "rules": "required|integer|between:1,48"
 | 
					            "rules": "required|integer|between:1,48"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -46,8 +51,8 @@
 | 
				
			|||||||
            "description": "The name that shows up in the server browser",
 | 
					            "description": "The name that shows up in the server browser",
 | 
				
			||||||
            "env_variable": "SERVER_HOSTNAME",
 | 
					            "env_variable": "SERVER_HOSTNAME",
 | 
				
			||||||
            "default_value": "My new FXServer!",
 | 
					            "default_value": "My new FXServer!",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 1,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string"
 | 
					            "rules": "required|string"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -55,8 +60,8 @@
 | 
				
			|||||||
            "description": "The fivem version that is to be installed.\r\n\r\nan example is `1383-e5ea040353ce1b8bc86e37982bf5d888938e3096`\r\n\r\nYou can the latest version from here - https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/",
 | 
					            "description": "The fivem version that is to be installed.\r\n\r\nan example is `1383-e5ea040353ce1b8bc86e37982bf5d888938e3096`\r\n\r\nYou can the latest version from here - https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/",
 | 
				
			||||||
            "env_variable": "FIVEM_VERSION",
 | 
					            "env_variable": "FIVEM_VERSION",
 | 
				
			||||||
            "default_value": "latest",
 | 
					            "default_value": "latest",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 1,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string|max:50"
 | 
					            "rules": "required|string|max:50"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -64,8 +69,8 @@
 | 
				
			|||||||
            "description": "This is the link to download fivem from. This is only used in the install script.\r\n\r\nThe file you link to needs to be an fx.tar.zx file.\r\n\r\nExample:\r\nhttps:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/1626-8c06e8bc3ed7e6690c6c2d9e0b90e29df65b3ea6\/fx.tar.xz",
 | 
					            "description": "This is the link to download fivem from. This is only used in the install script.\r\n\r\nThe file you link to needs to be an fx.tar.zx file.\r\n\r\nExample:\r\nhttps:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/1626-8c06e8bc3ed7e6690c6c2d9e0b90e29df65b3ea6\/fx.tar.xz",
 | 
				
			||||||
            "env_variable": "DOWNLOAD_URL",
 | 
					            "env_variable": "DOWNLOAD_URL",
 | 
				
			||||||
            "default_value": "",
 | 
					            "default_value": "",
 | 
				
			||||||
            "user_viewable": 0,
 | 
					            "user_viewable": false,
 | 
				
			||||||
            "user_editable": 0,
 | 
					            "user_editable": false,
 | 
				
			||||||
            "rules": "string|nullable"
 | 
					            "rules": "string|nullable"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -73,8 +78,8 @@
 | 
				
			|||||||
            "description": "Use your Steam WebApiKey or set to 'none'. Get your key at https:\/\/steamcommunity.com\/dev\/apikey\/",
 | 
					            "description": "Use your Steam WebApiKey or set to 'none'. Get your key at https:\/\/steamcommunity.com\/dev\/apikey\/",
 | 
				
			||||||
            "env_variable": "STEAM_WEBAPIKEY",
 | 
					            "env_variable": "STEAM_WEBAPIKEY",
 | 
				
			||||||
            "default_value": "none",
 | 
					            "default_value": "none",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 1,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string"
 | 
					            "rules": "required|string"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -82,8 +87,8 @@
 | 
				
			|||||||
            "description": "The port for the txAdmin panel",
 | 
					            "description": "The port for the txAdmin panel",
 | 
				
			||||||
            "env_variable": "TXADMIN_PORT",
 | 
					            "env_variable": "TXADMIN_PORT",
 | 
				
			||||||
            "default_value": "40120",
 | 
					            "default_value": "40120",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 0,
 | 
					            "user_editable": false,
 | 
				
			||||||
            "rules": "required|string|max:20"
 | 
					            "rules": "required|string|max:20"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -91,8 +96,8 @@
 | 
				
			|||||||
            "description": "Enables txadmin.\r\n\r\nset to 1 to enable. (default is 0 for false)",
 | 
					            "description": "Enables txadmin.\r\n\r\nset to 1 to enable. (default is 0 for false)",
 | 
				
			||||||
            "env_variable": "TXADMIN_ENABLE",
 | 
					            "env_variable": "TXADMIN_ENABLE",
 | 
				
			||||||
            "default_value": "0",
 | 
					            "default_value": "0",
 | 
				
			||||||
            "user_viewable": 1,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": 1,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|bool"
 | 
					            "rules": "required|bool"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user