1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/meilisearch_ynh.git synced 2024-09-03 19:45:59 +02:00

Make restore working

This commit is contained in:
frju365 2020-05-16 19:50:01 +02:00
parent 6728494f86
commit acd55aaedd
No known key found for this signature in database
GPG key ID: C892BE847FF5635A

View file

@ -58,6 +58,24 @@ ynh_script_progression --message="Restoring the app main directory..." --time --
ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE Meilisearch
#=================================================
ynh_script_progression --message="Download again binary for the API." --time --weight=1
arch=$(ynh_detect_arch)
if [ "$arch" != "amd64" ] && [ "$arch" != "armv8" ]
then
ynh_die --message="Your OS Architecture is not supported"
fi
release_file=meilisearch-linux-$arch
curl -OL https://github.com/meilisearch/MeiliSearch/releases/download/$latest/meilisearch-linux-$arch
chmod +x "$release_file"
mv "$release_file" /usr/bin/meilisearch
#=================================================
# RECREATE THE DEDICATED USER
#=================================================