Browse Source

Change also datadir's scope

pull/218/head
Jimmy Monin 7 years ago
parent
commit
b9d8e09fee
  1. 5
      scripts/upgrade

5
scripts/upgrade

@ -193,6 +193,8 @@ local mount_id=`exec_occ files_external:create --output=json \
&& ynh_print_warn --message="Unable to create external storage" \
|| exec_occ files_external:option "$mount_id" enable_sharing true
}
# Define app's data directory
datadir="/home/yunohost.app/$app/data"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
@ -202,9 +204,6 @@ then
source upgrade.d/upgrade.last.sh
last_version=$next_version
# Define app's data directory
datadir="/home/yunohost.app/$app/data"
# Set write access for the following commands
chown -R $app: "$final_path" "$datadir"

Loading…
Cancel
Save