srb2kart: add admin password

This commit is contained in:
Renken 2024-01-20 21:34:13 +01:00
parent 3474ece326
commit 84a5868bc4
Signed by: renken
GPG key ID: 1F2BB159B645E575
11 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View file

@ -12,3 +12,5 @@
*.substvars *.substvars
*.tar.xz *.tar.xz
config/shione/wireguard/files/etc/wireguard config/shione/wireguard/files/etc/wireguard
deploy/shione/srb2kart/dkartconfig_password.cfg
deploy/shione/srb2kart/dkartconfig.cfg

View file

@ -33,6 +33,10 @@ fi
cp -- dkartconfig_base.cfg dkartconfig.cfg cp -- dkartconfig_base.cfg dkartconfig.cfg
# NOTE: `dkartconfig_password.cfg` *must* follow the format `password xxx`.
# TODO: Read from an environment variable?
cat -- dkartconfig_password.cfg >>dkartconfig.cfg
# NOTE: `find` does not offer a way to guarantee a desired sort of its output. # NOTE: `find` does not offer a way to guarantee a desired sort of its output.
find mods -type f -printf 'addfile %p\n' | sort >dkartconfig_generated.cfg find mods -type f -printf 'addfile %p\n' | sort >dkartconfig_generated.cfg

View file

@ -1 +0,0 @@
../001-chars/c1

View file

@ -1 +0,0 @@
../001-chars/c2

View file

@ -1 +0,0 @@
../000-pre/p1

View file

@ -1 +0,0 @@
../003-post/po1

View file

@ -1 +0,0 @@
../002-tracks/t1