Remove perf script

This commit is contained in:
shamoon
2026-01-30 13:09:50 -08:00
parent 6a16d5c63e
commit 04abdade1a
4 changed files with 1 additions and 745 deletions

View File

@@ -19,8 +19,7 @@ for command in decrypt_documents \
manage_superuser \
convert_mariadb_uuid \
prune_audit_logs \
createsuperuser \
document_perf_benchmark;
createsuperuser;
do
echo "installing $command..."
sed "s/management_command/$command/g" management_script.sh >"$PWD/rootfs/usr/local/bin/$command"

View File

@@ -1,17 +0,0 @@
#!/command/with-contenv /usr/bin/bash
# shellcheck shell=bash
set -e
cd "${PAPERLESS_SRC_DIR}"
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
python3 manage.py document_perf_benchmark "$@"
elif [[ $(id -u) == 0 ]]; then
s6-setuidgid paperless python3 manage.py document_perf_benchmark "$@"
elif [[ $(id -un) == "paperless" ]]; then
python3 manage.py document_perf_benchmark "$@"
else
echo "Unknown user."
exit 1
fi