Files
DFWebOS-Apps/jellyseerr/hooks/pre-start

10 lines
854 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
# Версия 3.0.0 позволяла контейнеру serr работать без полномочий root: https://github.com/seerr-team/seerr/releases/tag/v3.0.0
# Jellyseerr / Seerr ранее запускался от имени пользователя root, поэтому теперь мы рекурсивно устанавливаем владельца каталога данных на 1000:1000, чтобы у пользователей версий до 3.0.0 не было неработающего приложения.
APP_DATA_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)/data"
# Рекурсивно установить право собственности на все файлы и каталоги под APP_DATA_DIR на 1000:1000.
chown -R 1000:1000 "${APP_DATA_DIR}"