Skip to content

Commit

Permalink
Refactor (ci): Utilize variables for Applying hotfixes for hlds sec…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
joeltimothyoh committed Apr 20, 2024
1 parent 4865c48 commit dad0ce7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ RUN echo "[BUILD] Applying game fixes"; \
if [ "$APPID" = 90 ]; then \
echo "[UPDATE] Applying hotfixes for hlds"; \
# Hotfix "Error:./libstdc++.so.6: version CXXABI_1.3.8' not found"
ln -sfnv /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 /server/libgcc_s.so.1; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /server/libstdc++.so.6; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /steamcmd/linux32/libstdc++.so.6; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 "$SERVER_DIR/libgcc_s.so.1"; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "$SERVER_DIR/libstdc++.so.6"; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "$STEAMCMD_DIR/linux32/libstdc++.so.6"; \
fi; \
# Create necessary symlinks for srcds/cs2
if [ "$APPID" = 730 ]; then \
Expand Down
6 changes: 3 additions & 3 deletions update/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ RUN --mount=type=secret,id=STEAM_USERNAME \
if [ "$APPID" = 90 ]; then \
echo "[UPDATE] Applying hotfixes for hlds"; \
# Hotfix "Error:./libstdc++.so.6: version CXXABI_1.3.8' not found"
ln -sfnv /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 /server/libgcc_s.so.1; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /server/libstdc++.so.6; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /steamcmd/linux32/libstdc++.so.6; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 "$SERVER_DIR/libgcc_s.so.1"; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "$SERVER_DIR/libstdc++.so.6"; \
ln -sfnv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "$STEAMCMD_DIR/linux32/libstdc++.so.6"; \
fi; \
echo "[UPDATE] Performing cleanup"; \
# Clean up a different set of files for srcds/cs2
Expand Down

0 comments on commit dad0ce7

Please sign in to comment.