move datadir owning

This commit is contained in:
yalh76 2019-04-03 02:49:10 +02:00
parent 15f8664900
commit 0e170b49c4

View file

@ -144,6 +144,10 @@ datadir="/home/yunohost.app/${app}/storage"
# Create app folders
mkdir -p "$datadir"
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"
#=================================================
# BUILD YARN DEPENDENCIES
#=================================================
@ -221,8 +225,6 @@ ynh_send_readme_to_admin "$message"
# Set permissions to app files
chown -R "$app":"$app" $final_path
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"
#=================================================
# SETUP LOGROTATE