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