mirror of
https://github.com/atareao/self-hosted.git
synced 2024-07-06 22:12:15 +02:00
10 lines
223 B
Bash
10 lines
223 B
Bash
#!/bin/bash
|
|
|
|
mediaowner=$(ls -ld /share | awk '{print $3}')
|
|
echo "Current /share owner is $mediaowner"
|
|
if [ "$mediaowner" != "www-data" ]
|
|
then
|
|
chown -R www-data:www-data /share
|
|
fi
|
|
/opt/nginx/sbin/nginx -g "daemon off;"
|