1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Fix datadir restore

This commit is contained in:
yalh76 2021-04-06 20:56:43 +02:00
parent 5b33981053
commit 06232efe28

View file

@ -91,6 +91,9 @@ chown -R "$app":"$app" "$final_path"
#=================================================
ynh_script_progression --message="Recreating the data directory..."
# 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
# Create app folders
mkdir -p "$datadir/"
mkdir -p "$datadir/uploads/"
@ -100,8 +103,6 @@ mkdir -p "$datadir/static/emoji/"
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"
ynh_app_setting_set --app=$app --key=datadir --value="$datadir"
#=================================================
# RESTORE THE CONFIG FILE
#=================================================