1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

[fix] Better path for datadir

This commit is contained in:
ljf (zamentur) 2020-09-20 18:37:33 +02:00 committed by GitHub
parent a646f7648d
commit b8723b68c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,12 +84,12 @@ chown -R $app:$app $final_path
#=================================================
ynh_script_progression --message="Restoring data directory..." --weight=2
datadir="/home/yunohost.app/$app/storage"
datadir="/home/yunohost.app/$app"
# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup.
ynh_restore_file --origin_path="$datadir" --not_mandatory
mkdir -p "$datadir"
mkdir -p "$datadir/storage"
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"