Skip to content

Commit 3c5d3c0

Browse files
committed
bwrap ocsp renew script
1 parent cecc5f6 commit 3c5d3c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

certs/ocsp/renewcerts.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
22

3+
# bwrap execution environment to avoid port conflicts
4+
if [ "${AM_BWRAPPED-}" != "yes" ]; then
5+
bwrap_path="$(command -v bwrap)"
6+
if [ -n "$bwrap_path" ]; then
7+
export AM_BWRAPPED=yes
8+
exec "$bwrap_path" --cap-add ALL --unshare-net --dev-bind / / "$0" "$@"
9+
fi
10+
fi
11+
312
check_result(){
413
if [ $1 -ne 0 ]; then
514
if [ -n "$2" ]; then

0 commit comments

Comments
 (0)