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-11 20:25:09 +02:00
parent 9d704e47d3
commit 9dcb598bb1
3 changed files with 8 additions and 5 deletions

View file

@ -113,7 +113,7 @@ popd
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
mkdir -p $datadir
pushd $datadir
@ -122,7 +122,7 @@ popd
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"
chown -R root:$app "$datadir"
chown -R $app:$app "$datadir"
#=================================================
# NGINX CONFIGURATION
@ -181,7 +181,6 @@ popd
#=================================================
ynh_script_progression --message="Building funkwhale..."
pushd $final_path
source $final_path/virtualenv/bin/activate

View file

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

View file

@ -150,6 +150,10 @@ then
ynh_setup_source --dest_dir="$final_path/front" --source_id="front"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================