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:
parent
a646f7648d
commit
b8723b68c7
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue