You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entrypoint.sh
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,26 @@ source ./venv/bin/activate
12
12
13
13
python3 AstroTuxLauncher.py install
14
14
15
+
# Use a temporary file to edit launcher.toml because if a bind exists sed -i
16
+
# will fail. See https://unix.stackexchange.com/a/404356.
17
+
TEMPFILE=$(mktemp)
18
+
cp launcher.toml $TEMPFILE
19
+
15
20
if [[ "$DISABLE_ENCRYPTION"=~ ^([Tt][Rr][Uu][Ee]|1|[Yy][Ee][Ss])$ ]];then
16
21
echo Encryption will be disabled because DISABLE_ENCRYPTION is set.
17
-
echo Check https://github.com/birdhimself/astroneer-docker?tab=readme-ov-file#configuring-clientsfor instructions on how to enable clients to connect to servers with encryption disabled.
18
-
sed -i 's/^DisableEncryption.*/DisableEncryption = true/'launcher.toml
22
+
echo Check https://github.com/birdhimself/astroneer-docker?tab=readme-ov-file#configuring-clients-if-encryption-is-disabled on how to enable clients to connect to servers with encryption disabled.
23
+
sed -i 's/^DisableEncryption.*/DisableEncryption = true/'$TEMPFILE
19
24
else
20
25
echo Encryption will be enabled. You can safely ignore warnings related to encryption not working using Wine, this is no longer the case.
21
-
sed -i 's/^DisableEncryption.*/DisableEncryption = false/'launcher.toml
26
+
sed -i 's/^DisableEncryption.*/DisableEncryption = false/'$TEMPFILE
22
27
fi
23
28
24
29
if [[ "$DEBUG"=~ ^([Tt][Rr][Uu][Ee]|1|[Yy][Ee][Ss])$ ]];then
25
-
sed -i 's/^LogDebugMessages.*/LogDebugMessages = true/'launcher.toml
30
+
sed -i 's/^LogDebugMessages.*/LogDebugMessages = true/'$TEMPFILE
26
31
else
27
-
sed -i 's/^LogDebugMessages.*/LogDebugMessages = false/'launcher.toml
32
+
sed -i 's/^LogDebugMessages.*/LogDebugMessages = false/'$TEMPFILE
0 commit comments