Transitions the Docker image to use s6 and s6-overlay for process supervision instead of supervisord

This commit is contained in:
Trenton H
2024-05-30 14:41:42 -07:00
parent 71472a6a82
commit 12fa3f8859
127 changed files with 843 additions and 367 deletions

View File

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