Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EULA not being accepted #3

Open
crims0nHD opened this issue Feb 27, 2023 · 2 comments
Open

EULA not being accepted #3

crims0nHD opened this issue Feb 27, 2023 · 2 comments

Comments

@crims0nHD
Copy link

Whenever I restart the server it asks me to accept the EULA again. Is there an option to automatically accept it upon container startup?

@serpi90
Copy link

serpi90 commented Mar 5, 2023

Something like this in docker-entrypoint.sh should fix it.

if [ "$EULA" != "yes" ]; then 
	echo "You must accept de EULA by setting the env var EULA = yes in order to continue"
	exit 1
fi

echo "Accepting EULA"
echo "{
	\"GitHubPersonalAccessToken\":null,
	\"EulaAccepted\":\"$(date --utc --iso=seconds | sed 's/+00:00$/Z/')\",
	\"PluginManagerWarningDismissed\":false,
	\"LastPluginAliasesRefresh\":null,
	\"PluginVersionCache\":{},
	\"PluginAliases\":{}
}" > "$GAME_CONFIG_LOC/localadmin_internal_data.json"

@JHenzi
Copy link

JHenzi commented Mar 28, 2023

If you've started the server and mounted /root/.config/SCP Secret Labratory you can edit the json file.

Run this; echo $(date --utc --iso=seconds | sed 's/+00:00$/Z/') and paste the date into the json file:

My localadmin_internal_data.json:

{
    "GitHubPersonalAccessToken": null,
    "EulaAccepted": "2023-03-28T14:17:21Z",
    "PluginManagerWarningDismissed": false,
    "LastPluginAliasesRefresh": null,
    "PluginVersionCache": {},
    "PluginAliases": {}
}

The volumes section of my docker-compose.yml:

    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./scp_root:/root/.config/SCP Secret Laboratory/

Ninja edit: I'm not using this repo, but had the same issue using a similar setup so hoping this helps. Serpi's echo gave me the format so sharing how to get it quickly if you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants