mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 17:16:26 +00:00
15 lines
423 B
Bash
15 lines
423 B
Bash
#!/bin/bash
|
|
|
|
# NOTE: mac doesn't run as root, so only manage permissions
|
|
# if this script is running as root
|
|
if [ "$(id -u)" = "0" ]; then
|
|
touch /app/uwsgi.sock
|
|
chown -R $PUID:$PGID /app
|
|
chown $PUID:$PGID /app/uwsgi.sock
|
|
|
|
# Create and set permissions for the media / cache directories
|
|
mkdir -p /app/media
|
|
|
|
chown -R $PUID:$PGID /app
|
|
echo "Created and set permissions for cached_m3u directory"
|
|
fi
|