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

Update build.sh #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ RUN apt-get update \

COPY . /source/WireGuard

RUN chmod -R 777 /source/WireGuard

ENTRYPOINT exec /source/WireGuard/build.sh
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if [ ! -d "$build_env" ]; then
cp /etc/ssl/certs/ca-certificates.crt "$build_env/etc/ssl/certs/"

# Add patched version of DST Root CA X3 certificate
wget -O DSTRootCAX3_Extended.crt "https://crt.sh/?d=8395"
wget -O DSTRootCAX3_Extended.crt "https://crt.sh/?d=8395" --no-check-certificate
sed -i "s/xMDkzMDE0MDExNVow/0MDkzMDE4MTQwM1ow/g" DSTRootCAX3_Extended.crt
cat DSTRootCAX3_Extended.crt >> "$build_env/etc/ssl/certs/ca-certificates.crt"
fi
Expand All @@ -114,6 +114,8 @@ fi
# Disable quit if errors to allow printing of logfiles
set +e

mount -o bind /dev $build_env/dev

# Build packages
# -p package arch
# -v DSM version
Expand Down