mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-08-02 14:52:15 +00:00
fixing permissions so can work on mac
This commit is contained in:
parent
1b75fbc90a
commit
f9e269bfda
1 changed files with 9 additions and 9 deletions
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir -p /data/logos
|
||||
|
||||
sed -i "s/NGINX_PORT/${DISPATCHARR_PORT}/g" /etc/nginx/sites-enabled/default
|
||||
|
||||
# NOTE: mac doesn't run as root, so only manage permissions
|
||||
# if this script is running as root
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
|
|
@ -12,13 +16,9 @@ if [ "$(id -u)" = "0" ]; then
|
|||
|
||||
chown -R $PUID:$PGID /app
|
||||
echo "Created and set permissions for cached_m3u directory"
|
||||
|
||||
chown -R $PUID:$PGID /data/logos
|
||||
|
||||
# Permissions
|
||||
chown -R postgres:postgres /data/db
|
||||
fi
|
||||
|
||||
mkdir -p /data/logos
|
||||
chown -R $PUID:$PGID /data/logos
|
||||
|
||||
# Permissions
|
||||
chown -R postgres:postgres /data/db
|
||||
|
||||
# Set nginx port from ENV
|
||||
sed -i "s/NGINX_PORT/${DISPATCHARR_PORT}/g" /etc/nginx/sites-enabled/default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue