mirror of
https://github.com/Adam-Ant/media-server-in-a-box
synced 2024-12-20 14:44:34 +00:00
Recursively chown config directories
This commit is contained in:
parent
1825bc6664
commit
ad0750ca35
2
start.sh
2
start.sh
@ -25,7 +25,7 @@ docker-compose version &> /dev/null
|
|||||||
slen=${#SERVICES[@]}
|
slen=${#SERVICES[@]}
|
||||||
for ((i=0; i<$slen; i++)); do
|
for ((i=0; i<$slen; i++)); do
|
||||||
[[ ! -d $VOLDIR/${SERVICES[$i]} ]] && echo "Creating folder $VOLDIR/${SERVICES[$i]}" && mkdir -p $VOLDIR/${SERVICES[$i]}
|
[[ ! -d $VOLDIR/${SERVICES[$i]} ]] && echo "Creating folder $VOLDIR/${SERVICES[$i]}" && mkdir -p $VOLDIR/${SERVICES[$i]}
|
||||||
[[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]}
|
[[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown -R ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]}
|
||||||
done
|
done
|
||||||
|
|
||||||
#Since we are not using net=host, we need to whitelist the subnet in plex. ##TODO## Make this overrideable with commandline argument
|
#Since we are not using net=host, we need to whitelist the subnet in plex. ##TODO## Make this overrideable with commandline argument
|
||||||
|
Loading…
Reference in New Issue
Block a user