aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenken <renken@shione.net>2024-01-20 21:34:13 +0100
committerRenken <renken@shione.net>2024-05-12 16:49:44 +0200
commit84a5868bc4710aff0fa9b449501e162dace47a30 (patch)
tree345abe13c4497d8f1900a2454f6582be6aaae3a5
parent3474ece326452705f9e08cf8ce558e42dc49c0cb (diff)
downloadshione-84a5868bc4710aff0fa9b449501e162dace47a30.tar.gz
shione-84a5868bc4710aff0fa9b449501e162dace47a30.zip
srb2kart: add admin password
-rw-r--r--.gitignore2
-rwxr-xr-xdeploy/shione/srb2kart/generate_dkartconfig.sh4
-rw-r--r--deploy/shione/srb2kart/mods/001-chars/c10
-rw-r--r--deploy/shione/srb2kart/mods/001-chars/c20
-rw-r--r--deploy/shione/srb2kart/mods/002-tracks/t10
-rw-r--r--deploy/shione/srb2kart/mods/003-post/po10
l---------deploy/shione/srb2kart/mods/index/c11
l---------deploy/shione/srb2kart/mods/index/c21
l---------deploy/shione/srb2kart/mods/index/p11
l---------deploy/shione/srb2kart/mods/index/po11
l---------deploy/shione/srb2kart/mods/index/t11
11 files changed, 6 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 8ad5a9b..a2246de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,5 @@
*.substvars
*.tar.xz
config/shione/wireguard/files/etc/wireguard
+deploy/shione/srb2kart/dkartconfig_password.cfg
+deploy/shione/srb2kart/dkartconfig.cfg
diff --git a/deploy/shione/srb2kart/generate_dkartconfig.sh b/deploy/shione/srb2kart/generate_dkartconfig.sh
index 23d2d4a..c0d452e 100755
--- a/deploy/shione/srb2kart/generate_dkartconfig.sh
+++ b/deploy/shione/srb2kart/generate_dkartconfig.sh
@@ -33,6 +33,10 @@ fi
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.
find mods -type f -printf 'addfile %p\n' | sort >dkartconfig_generated.cfg
diff --git a/deploy/shione/srb2kart/mods/001-chars/c1 b/deploy/shione/srb2kart/mods/001-chars/c1
deleted file mode 100644
index e69de29..0000000
--- a/deploy/shione/srb2kart/mods/001-chars/c1
+++ /dev/null
diff --git a/deploy/shione/srb2kart/mods/001-chars/c2 b/deploy/shione/srb2kart/mods/001-chars/c2
deleted file mode 100644
index e69de29..0000000
--- a/deploy/shione/srb2kart/mods/001-chars/c2
+++ /dev/null
diff --git a/deploy/shione/srb2kart/mods/002-tracks/t1 b/deploy/shione/srb2kart/mods/002-tracks/t1
deleted file mode 100644
index e69de29..0000000
--- a/deploy/shione/srb2kart/mods/002-tracks/t1
+++ /dev/null
diff --git a/deploy/shione/srb2kart/mods/003-post/po1 b/deploy/shione/srb2kart/mods/003-post/po1
deleted file mode 100644
index e69de29..0000000
--- a/deploy/shione/srb2kart/mods/003-post/po1
+++ /dev/null
diff --git a/deploy/shione/srb2kart/mods/index/c1 b/deploy/shione/srb2kart/mods/index/c1
deleted file mode 120000
index 2a228a3..0000000
--- a/deploy/shione/srb2kart/mods/index/c1
+++ /dev/null
@@ -1 +0,0 @@
-../001-chars/c1 \ No newline at end of file
diff --git a/deploy/shione/srb2kart/mods/index/c2 b/deploy/shione/srb2kart/mods/index/c2
deleted file mode 120000
index ded63ff..0000000
--- a/deploy/shione/srb2kart/mods/index/c2
+++ /dev/null
@@ -1 +0,0 @@
-../001-chars/c2 \ No newline at end of file
diff --git a/deploy/shione/srb2kart/mods/index/p1 b/deploy/shione/srb2kart/mods/index/p1
deleted file mode 120000
index 246ebb9..0000000
--- a/deploy/shione/srb2kart/mods/index/p1
+++ /dev/null
@@ -1 +0,0 @@
-../000-pre/p1 \ No newline at end of file
diff --git a/deploy/shione/srb2kart/mods/index/po1 b/deploy/shione/srb2kart/mods/index/po1
deleted file mode 120000
index a72410e..0000000
--- a/deploy/shione/srb2kart/mods/index/po1
+++ /dev/null
@@ -1 +0,0 @@
-../003-post/po1 \ No newline at end of file
diff --git a/deploy/shione/srb2kart/mods/index/t1 b/deploy/shione/srb2kart/mods/index/t1
deleted file mode 120000
index 5a1373a..0000000
--- a/deploy/shione/srb2kart/mods/index/t1
+++ /dev/null
@@ -1 +0,0 @@
-../002-tracks/t1 \ No newline at end of file