22 lines
709 B
Bash
Executable File
22 lines
709 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
SRC=${1:?usage: check-rustproxy-source.sh /path/to/RustProxy}
|
|
|
|
for f in \
|
|
Cargo.toml \
|
|
debian/rustproxy.service \
|
|
debian/rustproxy.environment \
|
|
debian/rustproxy.logrotate \
|
|
debian/rustproxy.tmpfiles \
|
|
debian/rustproxy.postinst \
|
|
grafana/rustproxy-overview.json; do
|
|
[[ -f "$SRC/$f" ]] || { echo "missing: $f" >&2; exit 1; }
|
|
done
|
|
|
|
grep -q '^name = "rust-proxy"' "$SRC/Cargo.toml"
|
|
grep -q '^version = "0.26.6"' "$SRC/Cargo.toml"
|
|
grep -q '^ExecStart=/usr/bin/rust-proxy serve' "$SRC/debian/rustproxy.service"
|
|
grep -q '^RUST_PROXY_DATA_DIR=/var/lib/rustproxy' "$SRC/debian/rustproxy.environment"
|
|
|
|
echo 'RustProxy 0.26.6 packaging layout: OK'
|