1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix rights

This commit is contained in:
yalh76 2021-04-16 02:49:59 +02:00
parent afb7d6a9f4
commit 9c2ba7d24a
5 changed files with 16 additions and 8 deletions

View file

@ -113,7 +113,7 @@ location /media/ {
alias __DATADIR__/media/; alias __DATADIR__/media/;
} }
location /_protected/media/ { location /_protected/media {
# this is an internal location that is used to serve # this is an internal location that is used to serve
# audio files once correct permission / authentication # audio files once correct permission / authentication
# has been checked on API side # has been checked on API side
@ -130,7 +130,7 @@ location /_protected/media/ {
# proxy_pass $1; # proxy_pass $1;
# } # }
location /_protected/music/ { location /_protected/music {
# this is an internal location that is used to serve # this is an internal location that is used to serve
# audio files once correct permission / authentication # audio files once correct permission / authentication
# has been checked on API side # has been checked on API side

View file

@ -113,7 +113,7 @@ popd
chmod -R 750 "$final_path" chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path" chown -R $app:www-data "$final_path"
mkdir -p $datadir mkdir -p $datadir
pushd $datadir pushd $datadir
@ -122,7 +122,7 @@ popd
chmod -R 750 "$datadir" chmod -R 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:$app "$datadir" chown -R $app:www-data "$datadir"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -192,6 +192,10 @@ pushd $final_path
echo "yes" | python api/manage.py collectstatic echo "yes" | python api/manage.py collectstatic
popd popd
chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -71,7 +71,7 @@ ynh_restore_file --origin_path="$final_path"
chmod -R 750 "$final_path" chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path" chown -R $app:www-data "$final_path"
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION
@ -89,7 +89,7 @@ popd
chmod -R 750 "$datadir" chmod -R 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:$app "$datadir" chown -R $app:www-data "$datadir"
#================================================= #=================================================
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES

View file

@ -152,7 +152,7 @@ fi
chmod -R 750 "$final_path" chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path" chown -R $app:www-data "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -230,6 +230,10 @@ pushd $final_path
python api/manage.py fw media generate-thumbnails python api/manage.py fw media generate-thumbnails
popd popd
chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
#================================================= #=================================================