v0.27.3
This commit is contained in:
1 parent
e84df445c6
commit
e87a382a7e
109 files changed
+1092
-2925
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
DATA_DIR="${RUST_PROXY_DATA_DIR:-/var/lib/rustproxy}"
|
||||
RUSTPROXY_UID="${RUSTPROXY_UID:-10001}"
|
||||
RUSTPROXY_GID="${RUSTPROXY_GID:-10001}"
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
mkdir -p "$DATA_DIR"
|
||||
|
||||
chown "$RUSTPROXY_UID:$RUSTPROXY_GID" "$DATA_DIR"
|
||||
chmod 0700 "$DATA_DIR"
|
||||
|
||||
exec gosu "$RUSTPROXY_UID:$RUSTPROXY_GID" \
|
||||
/usr/local/bin/rust-proxy "$@"
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/rust-proxy "$@"
|
||||
Reference in new issue
Block a user